forked from OSchip/llvm-project
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
This commit is contained in:
parent
a7dffb139c
commit
c0ca8089a2
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue