summaryrefslogtreecommitdiffstats
path: root/lib/libc/string/strerror_r.c
diff options
context:
space:
mode:
authortobias <tobias@openbsd.org>2015-09-06 20:07:46 +0000
committertobias <tobias@openbsd.org>2015-09-06 20:07:46 +0000
commita1c4e90abc6223c75821a7a78de781ab4c6844ee (patch)
tree0cb256c32d8985be4e0253d4dfedf332bd94db9f /lib/libc/string/strerror_r.c
parentAvoid floating point exception when an invalid font width was specified. (diff)
downloadwireguard-openbsd-a1c4e90abc6223c75821a7a78de781ab4c6844ee.tar.xz
wireguard-openbsd-a1c4e90abc6223c75821a7a78de781ab4c6844ee.zip
UINT_MAX would overflow the integer calculation later on, leading to
floating point exception just like -1 would do. Use INT_MAX, which is already way too high to make sense anyway.
Diffstat (limited to 'lib/libc/string/strerror_r.c')
0 files changed, 0 insertions, 0 deletions