This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] PPC Bugz#1877 strncmp() accesses beyond instructed n bytes
- From: Steve Munroe <sjmunroe at us dot ibm dot com>
- To: Ulrich Drepper <drepper at redhat dot com>
- Cc: libc-alpha at sources dot redhat dot com
- Date: Thu, 17 Nov 2005 16:41:56 -0600
- Subject: Re: [PATCH] PPC Bugz#1877 strncmp() accesses beyond instructed n bytes
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.