aboutsummaryrefslogtreecommitdiff
path: root/ChangeLog
diff options
context:
space:
mode:
authorChris Metcalf <cmetcalf@mellanox.com>2017-01-16 15:38:25 -0500
committerChris Metcalf <cmetcalf@mellanox.com>2017-01-16 15:44:48 -0500
commit502697713f4f129b602d7213253a9982ee1989f1 (patch)
tree933c5eb4537e278df0cb0e2e664c40bc0afe6b38 /ChangeLog
parent4cb89c158124c27006903f10e309b09d5311053a (diff)
downloadglibc-502697713f4f129b602d7213253a9982ee1989f1.tar
glibc-502697713f4f129b602d7213253a9982ee1989f1.tar.gz
glibc-502697713f4f129b602d7213253a9982ee1989f1.tar.bz2
glibc-502697713f4f129b602d7213253a9982ee1989f1.zip
tile: Check for pointer add overflow in memchr
As was done in b224637928e9, check for large size causing an overflow in the loop that walks over the array. Branching out of line here is the fastest approach for handling this problem, since tile can bundle the instructions to compute the branch test in parallel with doing the required memchr loop setup computation. Unfortunately, the existing saturated ops (e.g. tilegx addxsc) are all signed saturing ops, so don't help with unsigned saturation.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog4
1 files changed, 4 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 5388306806..9498803f7f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2017-01-16 Chris Metcalf <cmetcalf@mellanox.com>
+ * sysdeps/tile/tilegx/memchr.c (__memchr): Handle pointer
+ wrap-around.
+ * sysdeps/tile/tilepro/memchr.c (__memchr): Likewise.
+
* sysdeps/unix/sysv/linux/tile/ipc_priv.h: New file.
2016-01-14 Siddhesh Poyarekar <siddhesh@sourceware.org>