summaryrefslogtreecommitdiffhomepage
path: root/fuzz-wrapfd.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2018-03-06 21:51:51 +0800
committerMatt Johnston <matt@ucc.asn.au>2018-03-06 21:51:51 +0800
commita60725740b65be8679afe612f7fec2639ed0eab7 (patch)
tree6b8cb9b55c175452598bcfc11f8dbcd6d002b45b /fuzz-wrapfd.c
parent5d065258da487301f269e795694702b5349de69f (diff)
workaround memory sanitizer FD_ZERO false positives
Diffstat (limited to 'fuzz-wrapfd.c')
-rw-r--r--fuzz-wrapfd.c6
1 files changed, 4 insertions, 2 deletions
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) {