summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/malloc.3
diff options
context:
space:
mode:
authorjsing <>2017-03-16 13:29:56 +0000
committerjsing <>2017-03-16 13:29:56 +0000
commit854a4a0e4ddf686eb6d9e36d8b0af8926c723a28 (patch)
tree91836b909bf0ba30f481ebe88e5bc4cf8620c2ea /src/lib/libc/stdlib/malloc.3
parent9876415607a0e48169e9eaf668be954816a65715 (diff)
downloadopenbsd-854a4a0e4ddf686eb6d9e36d8b0af8926c723a28.tar.gz
openbsd-854a4a0e4ddf686eb6d9e36d8b0af8926c723a28.tar.bz2
openbsd-854a4a0e4ddf686eb6d9e36d8b0af8926c723a28.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 'src/lib/libc/stdlib/malloc.3')
0 files changed, 0 insertions, 0 deletions