summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Rytarowski <n54@gmx.com>2019-09-08 15:00:13 +0000
committerKamil Rytarowski <n54@gmx.com>2019-09-08 15:00:13 +0000
commit6d406c31f48671c8074d4255d7c5f54440f6811f (patch)
tree31aab119c423a4b87a11babbef110d6d7021a173
parent2dd05b302ecefead0c849efdadbe3a48b2492b94 (diff)
downloadcompiler-rt-6d406c31f48671c8074d4255d7c5f54440f6811f.tar.gz
Do not intercept malloc_usable_size on NetBSD
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@371334 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/sanitizer_common/sanitizer_platform_interceptors.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/sanitizer_common/sanitizer_platform_interceptors.h b/lib/sanitizer_common/sanitizer_platform_interceptors.h
index 7be90ead1..97afb5ea2 100644
--- a/lib/sanitizer_common/sanitizer_platform_interceptors.h
+++ b/lib/sanitizer_common/sanitizer_platform_interceptors.h
@@ -489,7 +489,8 @@
SI_NOT_RTEMS)
#define SANITIZER_INTERCEPT_REALLOCARRAY SI_POSIX
#define SANITIZER_INTERCEPT_ALIGNED_ALLOC (!SI_MAC && SI_NOT_RTEMS)
-#define SANITIZER_INTERCEPT_MALLOC_USABLE_SIZE (!SI_MAC && !SI_OPENBSD)
+#define SANITIZER_INTERCEPT_MALLOC_USABLE_SIZE \
+ (!SI_MAC && !SI_OPENBSD && !SI_NETBSD)
#define SANITIZER_INTERCEPT_MCHECK_MPROBE SI_LINUX_NOT_ANDROID
#define SANITIZER_INTERCEPT_WCSCAT SI_POSIX
#define SANITIZER_INTERCEPT_WCSDUP SI_POSIX