diff options
author | iphydf <iphydf@users.noreply.github.com> | 2018-01-25 03:13:46 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2018-01-26 01:30:06 +0000 |
commit | 9c03439ad09f6f23ca634685d5b0b9cac8b03a88 (patch) | |
tree | 6482d50c777dc73745f6c912269394056d01eee6 /other/bootstrap_daemon/src/global.h | |
parent | 2a5941c9f9c355475fc2a75759d1daedbd77ea97 (diff) |
Fix out of bounds read in error case in messenger_test.
Also got rid of two VLAs. They are overused a bit in toxcore. In
irc_syncbot, the array was uninitialised and then filled by a recv system
call. This can cause uninitialised reads if recv doesn't fill the entire
array. It could not cause out of bounds read directly, because a
NUL-terminator was in place, but both cases are undefined behaviour.
Diffstat (limited to 'other/bootstrap_daemon/src/global.h')
0 files changed, 0 insertions, 0 deletions