This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/1877] strncmp() accesses beyond instructed n bytes


------- Additional Comments From sjmunroe at us dot ibm dot com  2005-11-17 21:43 -------
For powerpc32 and powerpc64, where the end of either s1 or s2 is also the end of
the page, the code will attempt to load the next byte from s1/s2 even if the
residual length is 0. This can happen of the origial length was 0 or if the
sting was (word, double word) aligned and the strings are equal.

The current test-strncmp does not test for or detect this case.

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=1877

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]