summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2017-03-16 13:29:56 +0000
committerjsing <jsing@openbsd.org>2017-03-16 13:29:56 +0000
commit33497392331332de6a8976beabee1bb694603e0f (patch)
tree562d86af2d9f48e5902926671a94c4b526ffc318 /lib/libc
parentUse calloc() instead of malloc() followed by manually zeroing fields. (diff)
downloadwireguard-openbsd-33497392331332de6a8976beabee1bb694603e0f.tar.xz
wireguard-openbsd-33497392331332de6a8976beabee1bb694603e0f.zip
Convert BUF_MEM_grow() and BUF_MEM_grow_clean() to recallocarray(),
ensuring that the buffer contents are zeroed on allocation and not leaked when resizing. It is worth noting that BUF_MEM_grow_clean() already did this manually by avoiding realloc(). ok beck@ inoguchi@
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions