[PATCH] PPC Bugz#1877 strncmp() accesses beyond instructed n bytes

Steven Munroe munroesj@us.ibm.com
Thu Nov 17 19:17:00 GMT 2005


Suriyan Ramasami reports that on powerpc strncmp() accesses memory beyond end of string of 'n' bytes. Where this crosses a page boundry a sigsegv might result.

The attached patch updates test-strncmp the detect this and fixes strncmp.S for powerpc32 and powerpc64.


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ppc-strncmp-20051115.txt
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20051117/9de49691/attachment.txt>


More information about the Libc-alpha mailing list