This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/1877] strncmp() accesses beyond instructed n bytes
- From: "sjmunroe at us dot ibm dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 17 Nov 2005 21:43:10 -0000
- Subject: [Bug libc/1877] strncmp() accesses beyond instructed n bytes
- References: <20051117185437.1877.sjmunroe@us.ibm.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- 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.