summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorkjell <kjell@openbsd.org>2006-05-03 21:15:59 +0000
committerkjell <kjell@openbsd.org>2006-05-03 21:15:59 +0000
commitcfa56a901b15030c438cf457136363de4befe187 (patch)
tree199865c50c6ec30e750e6032e89da90a8853e678 /lib
parentgoodbye noisy debug. (diff)
downloadwireguard-openbsd-cfa56a901b15030c438cf457136363de4befe187.tar.xz
wireguard-openbsd-cfa56a901b15030c438cf457136363de4befe187.zip
len = strlen(foo); if foo[len - 1]... will do bad things if len == 0.
Avoid, and rearrange a test so it can't (hypothetically) overflow.
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions