diff options
author | 2017-08-20 07:03:45 +0000 | |
---|---|---|
committer | 2017-08-20 07:03:45 +0000 | |
commit | 9f7b078a4118339e3345d8f4f3f1125335dd096e (patch) | |
tree | 2c9955c115c194db94be4c0e63b5b5470fd8807d /lib/libc/stdlib/malloc.c | |
parent | sync (diff) | |
download | wireguard-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