This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Fix strncmp page test to limit length to size of object
- From: Ulrich Drepper <drepper at gmail dot com>
- To: Andreas Schwab <schwab at redhat dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Wed, 6 Apr 2011 09:25:47 -0400
- Subject: Re: [PATCH] Fix strncmp page test to limit length to size of object
- References: <m2vcz3rsio.fsf@igel.home> <1301349529.12961.60.camel@localhost.localdomain><m2r59qsy6w.fsf@igel.home> <m38vvytiwv.fsf_-_@redhat.com> <AANLkTini7vRU7ZB1OEcOVEWU3UKoxHEY9w0UHXGBt2_X@mail.gmail.com><m3mxk3czso.fsf@redhat.com>
On Wed, Apr 6, 2011 at 08:47, Andreas Schwab <schwab@redhat.com> wrote:
> You are mistaken.
Such statements won't help.
If a string is limited it is perfectly fine to specify a longer
length. This is how it always was meant to be and any implementation
that has problems with it has to be fixed.