diff options
| author | Fangrui Song <maskray@google.com> | 2018-07-28 23:41:50 +0000 |
|---|---|---|
| committer | Fangrui Song <maskray@google.com> | 2018-07-28 23:41:50 +0000 |
| commit | c0ca8089a27694b39d9a3174a8e5a68826b376a2 (patch) | |
| tree | 0bcabfc42e775f7e5233ffdbd39f0b417900f258 | |
| parent | a7dffb139c33f7ceec66073d2049865fea6db789 (diff) | |
| download | bcm5719-llvm-c0ca8089a27694b39d9a3174a8e5a68826b376a2.tar.gz bcm5719-llvm-c0ca8089a27694b39d9a3174a8e5a68826b376a2.zip | |
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.
llvm-svn: 338208
| -rw-r--r-- | compiler-rt/lib/asan/tests/asan_test.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/asan/tests/asan_test.cc b/compiler-rt/lib/asan/tests/asan_test.cc index 11a3506a485..25d6a208345 100644 --- a/compiler-rt/lib/asan/tests/asan_test.cc +++ b/compiler-rt/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; |

