This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Fixing where test-strncmp could read beyond page boundary
- From: Richard Henderson <rth at twiddle dot net>
- To: pc at us dot ibm dot com, libc-alpha at sourceware dot org
- Date: Tue, 20 Dec 2016 09:29:06 -0800
- Subject: Re: [PATCH] Fixing where test-strncmp could read beyond page boundary
- Authentication-results: sourceware.org; auth=none
- References: <a321b583-d108-3c45-3354-fa80ccef8171@us.ibm.com>
On 12/20/2016 09:19 AM, Paul Clarke wrote:
> This change ensures that the "size" passed to strncmp() contains the
> strings within the page.
If there is a known difference or a known EOS before the end of the page, then
SIZE can legitimately be beyond the end of the page and the routine should not
SEGV.
Are you certain you're not removing valid testing for this function?
r~