summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2018-07-28 23:41:50 +0000
committerFangrui Song <maskray@google.com>2018-07-28 23:41:50 +0000
commit567789c1cb9f47621e2e49691bfde72492f2a3f0 (patch)
tree9efcd7cb0c0ea41db7061eb67d5d5ca0a6ba0b79
parent710b27eea2a6c005917d68a51f44c3e8aa1cf36d (diff)
Fix Asan-i386-calls-Test AddressSanitizer.ShadowGapTest on FreeBSD
0x22000000 happens to be on the left of a heap allocation and the error message is different (heap-buffer-overflow). FreeBSD NetBSD have larger SHADOW_OFFSET (0x40000000) but let's try not using #ifdef here. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@338208 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/asan/tests/asan_test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/asan/tests/asan_test.cc b/lib/asan/tests/asan_test.cc
index 11a3506a4..25d6a2083 100644
--- a/lib/asan/tests/asan_test.cc
+++ b/lib/asan/tests/asan_test.cc
@@ -963,7 +963,7 @@ TEST(AddressSanitizer, ThreadNamesTest) {
#if ASAN_NEEDS_SEGV
TEST(AddressSanitizer, ShadowGapTest) {
#if SANITIZER_WORDSIZE == 32
- char *addr = (char*)0x22000000;
+ char *addr = (char*)0x23000000;
#else
# if defined(__powerpc64__)
char *addr = (char*)0x024000800000;