We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1597774 commit 9fdff54Copy full SHA for 9fdff54
libc/src/__support/macros/sanitizer.h
@@ -47,14 +47,14 @@
47
// Functions to unpoison memory
48
//-----------------------------------------------------------------------------
49
50
-#if LIBC_HAVE_MEMORY_SANITIZER
+#ifdef LIBC_HAVE_MEMORY_SANITIZER
51
#include <sanitizer/msan_interface.h>
52
#define MSAN_UNPOISON(addr, size) __msan_unpoison(addr, size)
53
#else
54
#define MSAN_UNPOISON(ptr, size)
55
#endif
56
57
-#if LIBC_HAVE_ADDRESS_SANITIZER
+#ifdef LIBC_HAVE_ADDRESS_SANITIZER
58
#include <sanitizer/asan_interface.h>
59
#define ASAN_POISON_MEMORY_REGION(addr, size) \
60
__asan_poison_memory_region((addr), (size))
0 commit comments