]> git.ipfire.org Git - thirdparty/systemd.git/commit
treewide: replace homegrown memory_erase with explicit_bzero
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 6 Feb 2017 01:05:27 +0000 (20:05 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 6 Feb 2017 02:07:55 +0000 (21:07 -0500)
commit2d26d8e07ee680995f96597a1cd713dd81491b89
treeca66e286a3319e1edf1d473d7d519c145596ac37
parent52e634271fe96ec23a22705ffb87df59a09d1618
treewide: replace homegrown memory_erase with explicit_bzero

explicit_bzero was added in glibc 2.25. Make use of it.

explicit_bzero is hardcoded to zero the memory, so string erase now
truncates the string, instead of overwriting it with 'x'. This causes
a visible difference only in the journalctl case.
configure.ac
src/basic/string-util.c
src/basic/string-util.h
src/reply-password/reply-password.c
src/shared/ask-password-api.c
src/test/test-string-util.c
src/tty-ask-password-agent/tty-ask-password-agent.c