From 8ee6a0d742a7e46bd352f6a389b2138138820c17 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 3 Apr 2016 16:06:49 +0200 Subject: explicit_bzero: set all bits to 1 before setting all bits to 0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/strings/explicit_bzero.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/strings/explicit_bzero.c b/src/strings/explicit_bzero.c index 42e46b4..af37ea5 100644 --- a/src/strings/explicit_bzero.c +++ b/src/strings/explicit_bzero.c @@ -42,6 +42,7 @@ void* (*volatile __slibc_explicit_memset)(void*, int, size_t) = memset; */ void explicit_bzero(void* segment, size_t size) { + __slibc_explicit_memset(segment, ~0, size); __slibc_explicit_memset(segment, 0, size); } -- cgit v1.2.3-70-g09d2