summaryrefslogtreecommitdiff
path: root/include/my_valgrind.h
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2018-03-20 18:36:03 +0200
committerMarko Mäkelä <marko.makela@mariadb.com>2018-03-20 18:36:03 +0200
commit04921000594dcbdf23340850b9284fd30ccdb0fd (patch)
tree94a14b06efc781d8ddd12b5a9276c533c12a5868 /include/my_valgrind.h
parente3dd9a95e50ef2019435b01bd9e161d552673a28 (diff)
parent69bc3c1976ebcbe116890d9d26305fd2887ed47c (diff)
downloadmariadb-git-04921000594dcbdf23340850b9284fd30ccdb0fd.tar.gz
Merge 5.5 into 10.0
Diffstat (limited to 'include/my_valgrind.h')
-rw-r--r--include/my_valgrind.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/my_valgrind.h b/include/my_valgrind.h
index 983dce8e75a..5d08a271d4a 100644
--- a/include/my_valgrind.h
+++ b/include/my_valgrind.h
@@ -35,6 +35,8 @@
# define MEM_CHECK_DEFINED(a,len) VALGRIND_CHECK_MEM_IS_DEFINED(a,len)
#elif defined(__SANITIZE_ADDRESS__)
# include <sanitizer/asan_interface.h>
+/* How to do manual poisoning:
+https://github.com/google/sanitizers/wiki/AddressSanitizerManualPoisoning */
# define MEM_UNDEFINED(a,len) ASAN_UNPOISON_MEMORY_REGION(a,len)
# define MEM_NOACCESS(a,len) ASAN_POISON_MEMORY_REGION(a,len)
# define MEM_CHECK_ADDRESSABLE(a,len) ((void) 0)