chiark / gitweb /
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)
committerSven Eden <yamakuzure@gmx.net>
Mon, 17 Jul 2017 15:58:36 +0000 (17:58 +0200)
commit9270bff168ecc98d1761a32ca28b1f3906b093f2
tree7e06883e6f9701c7b192689b6adedd4632855c49
parent85df5c16a4d10d955b204d9296827e108c0216a0
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.
src/basic/string-util.c
src/basic/string-util.h