[PATCH] powerpc: Fix powerpc32/power7 memchr for large input sizes
Carlos Eduardo Seo
cseo@linux.vnet.ibm.com
Fri Dec 23 21:05:00 GMT 2016
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
More information about the Libc-alpha
mailing list