This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] powerpc: Fix powerpc32/power7 memchr for large input sizes
- From: Carlos Eduardo Seo <cseo at linux dot vnet dot ibm dot com>
- To: Tulio Magno Quites Machado Filho <tuliom at linux dot vnet dot ibm dot com>
- Cc: <libc-alpha at sourceware dot org>, <adhemerval dot zanella at linaro dot org>
- Date: Fri, 23 Dec 2016 19:05:16 -0200
- Subject: Re: [PATCH] powerpc: Fix powerpc32/power7 memchr for large input sizes
- Authentication-results: sourceware.org; auth=none
- References: <1482522460-26613-1-git-send-email-tuliom@linux.vnet.ibm.com>
On 12/23/16, 5:47 PM, "Tulio Magno Quites Machado Filho" <libc-alpha-owner@sourceware.org on behalf of tuliom@linux.vnet.ibm.com> wrote:
The same error fixed in commit b224637928e9fc04e3cef3e10d02ccf042d01584
happens in the 32-bit implementation of memchr for power7.
This patch adopts the same solution, with a minimal change: it
implements a saturated addition where overflows sets the maximum pointer
size to UINTPTR_MAX.
LGTM