diff sysoptions.h @ 1596:60fceff95858

workaround memory sanitizer FD_ZERO false positives
author Matt Johnston <matt@ucc.asn.au>
date Tue, 06 Mar 2018 21:51:51 +0800
parents c42e8ff42bd1
children 1fbe598a14fb
line wrap: on
line diff
--- a/sysoptions.h	Tue Mar 06 21:00:09 2018 +0800
+++ b/sysoptions.h	Tue Mar 06 21:51:51 2018 +0800
@@ -318,4 +318,15 @@
 
 #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 */