Skip to content
Commit 5e628dd1 authored by Tulio Magno Quites Machado Filho's avatar Tulio Magno Quites Machado Filho
Browse files

powerpc: Fix powerpc32/power7 memchr for large input sizes

The same error fixed in commit b2246379
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.
parent 9314d354
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment