summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/reallocarray.c
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2014-05-08 20:08:50 +0000
committerkettenis <kettenis@openbsd.org>2014-05-08 20:08:50 +0000
commit36d5d901ac42f22136ea70180a000225456127ed (patch)
treeb25ab055c162a7f3a66231b8d9ad9fa7ea0ad8cb /lib/libc/stdlib/reallocarray.c
parentReplace hand-crafted STRICT_ALIGNMENT with system provided __STRICT_ALIGNMENT. (diff)
downloadwireguard-openbsd-36d5d901ac42f22136ea70180a000225456127ed.tar.xz
wireguard-openbsd-36d5d901ac42f22136ea70180a000225456127ed.zip
Fix some potential integer overflows caused by converting a page number into
an offset/size/address by shifting by PAGE_SHIFT. Make uvm_objwrire/unwire use voff_t instead of off_t. The former is the right type here even if it is equivalent to the latter. Inspired by a somewhat similar changes in Bitrig. ok deraadt@, guenther@
Diffstat (limited to 'lib/libc/stdlib/reallocarray.c')
0 files changed, 0 insertions, 0 deletions