Welcome! Log In Create A New Profile

Advanced

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

Dmitry Volyntsev
July 17, 2019 09:30AM
details: https://hg.nginx.org/njs/rev/377db9ae390d
branches:
changeset: 1056:377db9ae390d
user: Dmitry Volyntsev <xeioex@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)
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

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

Dmitry Volyntsev 281 July 17, 2019 09:30AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 285
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready