[njs] Using hand-written nxt_explicit_memzero() with memory-sanitizer.

Dmitry Volyntsev xeioex at nginx.com
Wed Jul 17 13:28:39 UTC 2019


details:   https://hg.nginx.org/njs/rev/377db9ae390d
branches:  
changeset: 1056:377db9ae390d
user:      Dmitry Volyntsev <xeioex at nginx.com>
date:      Wed Jul 17 16:28:30 2019 +0300
description:
Using hand-written nxt_explicit_memzero() with memory-sanitizer.

To avoid false-positive results.

diffstat:

 nxt/nxt_string.h |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 84eda5521a44 -r 377db9ae390d nxt/nxt_string.h
--- a/nxt/nxt_string.h	Tue Jul 16 17:32:12 2019 +0300
+++ b/nxt/nxt_string.h	Wed Jul 17 16:28:30 2019 +0300
@@ -87,7 +87,7 @@ nxt_memzero(buf, length)                
     (void) memset(buf, 0, length)
 
 
-#if (NXT_HAVE_EXPLICIT_BZERO)
+#if (NXT_HAVE_EXPLICIT_BZERO && !NXT_HAVE_MEMORY_SANITIZER)
 #define                                                                       \
 nxt_explicit_memzero(buf, length)                                             \
     explicit_bzero(buf, length)


More information about the nginx-devel mailing list