about summary refs log tree commit diff
path: root/ChangeLog
diff options
context:
space:
mode:
authorTulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>2016-12-28 11:38:56 -0200
committerTulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>2016-12-28 11:44:31 -0200
commit5e628dd118807981bdd880731e6fdf019f64a245 (patch)
treeab1efb6529f5b0c7ee03ab5e2f412e8d212f4717 /ChangeLog
parent9314d3545e6641063b490918e2e8716556ba20db (diff)
downloadglibc-5e628dd118807981bdd880731e6fdf019f64a245.tar.gz
glibc-5e628dd118807981bdd880731e6fdf019f64a245.tar.xz
glibc-5e628dd118807981bdd880731e6fdf019f64a245.zip
powerpc: Fix powerpc32/power7 memchr for large input sizes
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.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog5
1 files changed, 5 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index d9b2c98156..1ad68675c2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2016-12-28  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
+
+	* sysdeps/powerpc/powerpc32/power7/memchr.S (__memchr): Avoid an
+	overflow in pointer addition.
+
 2016-12-28  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
 
 	* sysdeps/powerpc/powerpc64/multiarch/Makefile