git: libc/stdlib: Add freezero() function.

Rimvydas Jasinskas zrj at crater.dragonflybsd.org
Thu Apr 11 02:06:45 PDT 2019


commit 78297c9bd458a14bd43b58c4fa6678d154321e03
Author: zrj <rimvydas.jasinskas at gmail.com>
Date:   Tue Apr 9 11:26:46 2019 +0300

    libc/stdlib: Add freezero() function.
    
    It is useful function for security related features. Internally uses
    explicit_bzero(3) before freeing the pointers. It could be implemented
    in nmalloc.c for extra benefits.
    Update the manpage.
    
    Taken-from: OpenBSD

Summary of changes:
 include/stdlib.h                                   |  1 +
 lib/libc/stdlib/Makefile.inc                       |  4 +++-
 lib/libc/stdlib/Symbol.map                         |  1 +
 .../openbsd-compat => lib/libc/stdlib}/freezero.c  | 15 +++++++------
 lib/libc/stdlib/malloc.3                           | 25 ++++++++++++++++++++--
 5 files changed, 37 insertions(+), 9 deletions(-)
 copy {crypto/openssh/openbsd-compat => lib/libc/stdlib}/freezero.c (77%)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/78297c9bd458a14bd43b58c4fa6678d154321e03


-- 
DragonFly BSD source repository


More information about the Commits mailing list