From a60725740b65be8679afe612f7fec2639ed0eab7 Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Tue, 6 Mar 2018 21:51:51 +0800 Subject: workaround memory sanitizer FD_ZERO false positives --- fuzz-wrapfd.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'fuzz-wrapfd.c') diff --git a/fuzz-wrapfd.c b/fuzz-wrapfd.c index 313a110..ed8968a 100644 --- a/fuzz-wrapfd.c +++ b/fuzz-wrapfd.c @@ -2,6 +2,8 @@ #include "includes.h" #include "fuzz-wrapfd.h" +#include "dbutil.h" + #include "fuzz.h" #define IOWRAP_MAXFD (FD_SETSIZE-1) @@ -195,7 +197,7 @@ int wrapfd_select(int nfds, fd_set *readfds, fd_set *writefds, nset++; } } - FD_ZERO(readfds); + DROPBEAR_FD_ZERO(readfds); if (nset > 0) { /* set one */ @@ -222,7 +224,7 @@ int wrapfd_select(int nfds, fd_set *readfds, fd_set *writefds, nset++; } } - FD_ZERO(writefds); + DROPBEAR_FD_ZERO(writefds); /* set one */ if (nset > 0) { -- cgit v1.2.3