about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/reboot.c
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 /sysdeps/unix/sysv/linux/reboot.c
parent4cb89c158124c27006903f10e309b09d5311053a (diff)
downloadglibc-502697713f4f129b602d7213253a9982ee1989f1.tar.gz
glibc-502697713f4f129b602d7213253a9982ee1989f1.tar.xz
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 'sysdeps/unix/sysv/linux/reboot.c')
0 files changed, 0 insertions, 0 deletions