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

Steve Munroe sjmunroe@us.ibm.com
Thu Nov 17 22:42:00 GMT 2005


Ulrich Drepper <drepper@redhat.com> wrote on 11/17/2005 04:12:35 PM:

> Steve Munroe wrote:
> > On powerpc or x86? This only fails on powerpc.
> 
> Of course ppc.   ppc64 to be specific.
> 
hhhmmm just verified that ppc32 does catch the bug. But looking at 
test-strncmp the loop parms may not set up the string equal and double 
word aligned, on 64-bit, case properly. This would not trigger the bug for 
ppc64. I'll verify this for ppc64 and submit a patch to cover this.



More information about the Libc-alpha mailing list