From 391f0234ebb48bc23f14886b234de7ebfb6fec66 Mon Sep 17 00:00:00 2001 From: Evgeniy Stepanov Date: Thu, 13 Feb 2014 13:04:39 +0000 Subject: [PATCH] [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 --- compiler-rt/lib/asan/lit_tests/TestCases/null_deref.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 476418324cc5..bae356ae1186 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]]