diff options
author | 2006-05-03 21:15:59 +0000 | |
---|---|---|
committer | 2006-05-03 21:15:59 +0000 | |
commit | cfa56a901b15030c438cf457136363de4befe187 (patch) | |
tree | 199865c50c6ec30e750e6032e89da90a8853e678 /lib | |
parent | goodbye noisy debug. (diff) | |
download | wireguard-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