summaryrefslogtreecommitdiffstats
path: root/compiler-rt
diff options
context:
space:
mode:
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>2014-02-13 13:04:39 +0000
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>2014-02-13 13:04:39 +0000
commit391f0234ebb48bc23f14886b234de7ebfb6fec66 (patch)
tree9f436e6fb9874dd5f33cca3c1c56ecd4890be823 /compiler-rt
parentee107adb7daeb6195729e31b4743f87651f84dc7 (diff)
downloadbcm5719-llvm-391f0234ebb48bc23f14886b234de7ebfb6fec66.tar.gz
bcm5719-llvm-391f0234ebb48bc23f14886b234de7ebfb6fec66.zip
[asan] Fix null_deref test with zero base shadow.
With zero base shadow, shadow for near-zero access is itself at near-zero location. As a result, this test crashes on the shadow access, and not on the app access. Relax a check to match this behavior. llvm-svn: 201324
Diffstat (limited to 'compiler-rt')
-rw-r--r--compiler-rt/lib/asan/lit_tests/TestCases/null_deref.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/asan/lit_tests/TestCases/null_deref.cc b/compiler-rt/lib/asan/lit_tests/TestCases/null_deref.cc
index 476418324cc..bae356ae118 100644
--- a/compiler-rt/lib/asan/lit_tests/TestCases/null_deref.cc
+++ b/compiler-rt/lib/asan/lit_tests/TestCases/null_deref.cc
@@ -6,7 +6,7 @@
__attribute__((noinline))
static void NullDeref(int *ptr) {
// CHECK: ERROR: AddressSanitizer: SEGV on unknown address
- // CHECK: {{0x0*00028 .*pc 0x.*}}
+ // CHECK: {{0x0*000.. .*pc 0x.*}}
ptr[10]++; // BOOM
// atos on Mac cannot extract the symbol name correctly.
// CHECK-Linux: {{ #0 0x.* in NullDeref.*null_deref.cc:}}[[@LINE-2]]
OpenPOWER on IntegriCloud