summaryrefslogtreecommitdiffstats
path: root/usr.bin/script/script.c
diff options
context:
space:
mode:
authorsthen <sthen@openbsd.org>2015-10-20 11:29:07 +0000
committersthen <sthen@openbsd.org>2015-10-20 11:29:07 +0000
commit73dbf992adf8369b780bc4d92138e30e57ab2a33 (patch)
tree7c7fb04257a66af5ab7ed6043bf73dbb2c671ec9 /usr.bin/script/script.c
parentfix a use after free found by clang using an approach suggested by renato (diff)
downloadwireguard-openbsd-73dbf992adf8369b780bc4d92138e30e57ab2a33.tar.xz
wireguard-openbsd-73dbf992adf8369b780bc4d92138e30e57ab2a33.zip
Add an explicit check for a malformed AS segment with (segment length 0),
avoiding division by zero when deciding whether it contains 2- or 4-byte ASNs. Refactor TCHECK calls to ensure proper coverage. From Kevin Reay, ok canacar with wording tweak (I used "malformed" rather than canacar's suggested "invalid size" or Kevin's original "empty").
Diffstat (limited to 'usr.bin/script/script.c')
0 files changed, 0 insertions, 0 deletions