[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 6/6] Improve styling in explicit_bzero
From: |
roucaries . bastien |
Subject: |
[PATCH 6/6] Improve styling in explicit_bzero |
Date: |
Mon, 13 Apr 2020 01:09:18 +0200 |
From: Bastien Roucariès <address@hidden>
Use '\0' instead of 0
Signed-off-by: Bastien Roucariès <address@hidden>
---
lib/explicit_bzero.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/explicit_bzero.c b/lib/explicit_bzero.c
index 03968acbf..072c59498 100644
--- a/lib/explicit_bzero.c
+++ b/lib/explicit_bzero.c
@@ -51,7 +51,7 @@ explicit_bzero (void *s, size_t len)
#if defined _WIN32 && !defined __CYGWIN__
(void) SecureZeroMemory (s, len);
#elif HAVE_EXPLICIT_MEMSET
- explicit_memset (s, 0, len);
+ explicit_memset (s, '\0', len);
#elif HAVE_MEMSET_S
(void) memset_s (s, len, '\0', len);
#elif defined __GNUC__
--
2.25.1
- [PATCH 1/6] Fix test in case of canaries on heap buffer after free, (continued)
- [PATCH 1/6] Fix test in case of canaries on heap buffer after free, roucaries . bastien, 2020/04/12
- [PATCH 2/6] Use memset_s if possible for explicit_bzero, roucaries . bastien, 2020/04/12
- [PATCH 3/6] Use SecureZeroMemory on windows for explicit_bzero, roucaries . bastien, 2020/04/12
- [PATCH 4/6] Support clang for explicit_bzero, roucaries . bastien, 2020/04/12
- [PATCH 5/6] Implement fallback for explicit_bzero using jump to volatile pointer, roucaries . bastien, 2020/04/12
- [PATCH 6/6] Improve styling in explicit_bzero,
roucaries . bastien <=