summaryrefslogtreecommitdiffhomepage
path: root/sysoptions.h
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 /sysoptions.h
parent5d065258da487301f269e795694702b5349de69f (diff)
workaround memory sanitizer FD_ZERO false positives
Diffstat (limited to 'sysoptions.h')
-rw-r--r--sysoptions.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/sysoptions.h b/sysoptions.h
index 0028199..942e724 100644
--- a/sysoptions.h
+++ b/sysoptions.h
@@ -318,4 +318,15 @@ If you test it please contact the Dropbear author */
#define DROPBEAR_TRACKING_MALLOC (DROPBEAR_FUZZ)
+/* Used to work around Memory Sanitizer false positives */
+#if defined(__has_feature)
+# if __has_feature(memory_sanitizer)
+# define DROPBEAR_MSAN 1
+# endif
+#endif
+#ifndef DROPBEAR_MSAN
+#define DROPBEAR_MSAN 0
+#endif
+
+
/* no include guard for this file */