summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/malloc.c
diff options
context:
space:
mode:
authortb <tb@openbsd.org>2017-08-20 07:03:45 +0000
committertb <tb@openbsd.org>2017-08-20 07:03:45 +0000
commit9f7b078a4118339e3345d8f4f3f1125335dd096e (patch)
tree2c9955c115c194db94be4c0e63b5b5470fd8807d /lib/libc/stdlib/malloc.c
parentsync (diff)
downloadwireguard-openbsd-9f7b078a4118339e3345d8f4f3f1125335dd096e.tar.xz
wireguard-openbsd-9f7b078a4118339e3345d8f4f3f1125335dd096e.zip
Check that we haven't yet reached the end of the string before calling
strcspn(3) instead of afterwards. Fixes an out-of-bound read that led to intermittent crashes experienced by rob in his regression test. ok rob
Diffstat (limited to 'lib/libc/stdlib/malloc.c')
0 files changed, 0 insertions, 0 deletions