diff options
author | 2017-03-16 13:29:56 +0000 | |
---|---|---|
committer | 2017-03-16 13:29:56 +0000 | |
commit | 33497392331332de6a8976beabee1bb694603e0f (patch) | |
tree | 562d86af2d9f48e5902926671a94c4b526ffc318 /lib/libc | |
parent | Use calloc() instead of malloc() followed by manually zeroing fields. (diff) | |
download | wireguard-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