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