diff options
author | jsing <> | 2017-03-16 13:29:56 +0000 |
---|---|---|
committer | jsing <> | 2017-03-16 13:29:56 +0000 |
commit | 854a4a0e4ddf686eb6d9e36d8b0af8926c723a28 (patch) | |
tree | 91836b909bf0ba30f481ebe88e5bc4cf8620c2ea /src/lib/libc/stdlib | |
parent | 9876415607a0e48169e9eaf668be954816a65715 (diff) | |
download | openbsd-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')
0 files changed, 0 insertions, 0 deletions