git: libc/stdlib: Add recallocarray() function.
Rimvydas Jasinskas
zrj at crater.dragonflybsd.org
Thu Apr 11 02:06:46 PDT 2019
commit 64c3fdb4f6f9d1c7aae94078345b946ca050b001
Author: zrj <rimvydas.jasinskas at gmail.com>
Date: Tue Apr 9 11:39:05 2019 +0300
libc/stdlib: Add recallocarray() function.
It is useful function for security related features, like resizing
memory objects containing sensitive data to avoid information leaking.
Update manpage.
Taken-from: OpenBSD
Summary of changes:
include/stdlib.h | 2 ++
lib/libc/stdlib/Makefile.inc | 3 ++-
lib/libc/stdlib/Symbol.map | 1 +
lib/libc/stdlib/reallocarray.3 | 30 +++++++++++++++++-----
.../libc/stdlib}/recallocarray.c | 12 +--------
5 files changed, 29 insertions(+), 19 deletions(-)
copy {crypto/openssh/openbsd-compat => lib/libc/stdlib}/recallocarray.c (91%)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/64c3fdb4f6f9d1c7aae94078345b946ca050b001
--
DragonFly BSD source repository
More information about the Commits
mailing list