diff options
author | Eugene Kosov <claprix@yandex.ru> | 2018-03-20 10:46:57 +0300 |
---|---|---|
committer | Eugene Kosov <claprix@yandex.ru> | 2018-03-20 10:46:57 +0300 |
commit | 5a8f8f89d65b75e51048288a49c86a8d974a8543 (patch) | |
tree | 1f879a7c5d62094cb8bf91c020bba061cb03505b /include | |
parent | 75c76dbb06a99359d867e2a516f3244bf41fde96 (diff) | |
download | mariadb-git-5a8f8f89d65b75e51048288a49c86a8d974a8543.tar.gz |
honor alignment rules and xtradb too
Diffstat (limited to 'include')
-rw-r--r-- | include/my_valgrind.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/my_valgrind.h b/include/my_valgrind.h index b76f5607bb5..8dde079b976 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) |