summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_hibernate.c
diff options
context:
space:
mode:
authordjm <djm@openbsd.org>2016-09-26 21:16:11 +0000
committerdjm <djm@openbsd.org>2016-09-26 21:16:11 +0000
commitc450860eb457d8c4a6725b32562fa8cf3cd28c38 (patch)
treea75f4b23d0262371f973449e640764baf59f007e /sys/kern/subr_hibernate.c
parentAvoid calculating offset several times. This was done for a few functions already, but not all of them. (diff)
downloadwireguard-openbsd-c450860eb457d8c4a6725b32562fa8cf3cd28c38.tar.xz
wireguard-openbsd-c450860eb457d8c4a6725b32562fa8cf3cd28c38.zip
Avoid a theoretical signed integer overflow should BN_num_bytes()
ever violate its manpage and return a negative value. Improve order of tests to avoid confusing increasingly pedantic compilers. Reported by Guido Vranken from stack (css.csail.mit.edu/stack) unstable optimisation analyser output. ok deraadt@
Diffstat (limited to 'sys/kern/subr_hibernate.c')
0 files changed, 0 insertions, 0 deletions