summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/labs.c
diff options
context:
space:
mode:
authordoug <>2014-12-17 17:51:33 +0000
committerdoug <>2014-12-17 17:51:33 +0000
commit0ce257e2480d10d11cd4d46eac3ea6ca49311cf6 (patch)
tree6b23fc9e20f81f6dc09a6fb3d8bac2a4246a7ab9 /src/lib/libc/stdlib/labs.c
parentc2e399263206ba62e8c110ac855698bccb450490 (diff)
downloadopenbsd-0ce257e2480d10d11cd4d46eac3ea6ca49311cf6.tar.gz
openbsd-0ce257e2480d10d11cd4d46eac3ea6ca49311cf6.tar.bz2
openbsd-0ce257e2480d10d11cd4d46eac3ea6ca49311cf6.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 'src/lib/libc/stdlib/labs.c')
0 files changed, 0 insertions, 0 deletions