diff options
author | 2014-12-17 17:51:33 +0000 | |
---|---|---|
committer | 2014-12-17 17:51:33 +0000 | |
commit | c81cfcc3acd0162e621822063e38b68fea9e5902 (patch) | |
tree | d37c302aa3179cf439d829ce005571353b398267 /sys/kern/subr_hibernate.c | |
parent | Use log_warnx() not log_warn() for mail loop warning since errno (diff) | |
download | wireguard-openbsd-c81cfcc3acd0162e621822063e38b68fea9e5902.tar.xz wireguard-openbsd-c81cfcc3acd0162e621822063e38b68fea9e5902.zip |
Add size_t to int checks for SSL functions.
libtls accepts size_t for lengths but libssl accepts int. This verifies
that the input does not exceed INT_MAX. It also avoids truncating size_t
when comparing with int and adds printf-style attributes for
tls_set_error().
with input from deraadt@ and tedu@
ok tedu@
Diffstat (limited to 'sys/kern/subr_hibernate.c')
0 files changed, 0 insertions, 0 deletions