[compiler-rt] r201324 - [asan] Fix null_deref test with zero base shadow.
Evgeniy Stepanov
eugeni.stepanov at gmail.com
Thu Feb 13 05:04:39 PST 2014
Author: eugenis
Date: Thu Feb 13 07:04:39 2014
New Revision: 201324
URL: http://llvm.org/viewvc/llvm-project?rev=201324&view=rev
Log:
[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.
Modified:
compiler-rt/trunk/lib/asan/lit_tests/TestCases/null_deref.cc
Modified: compiler-rt/trunk/lib/asan/lit_tests/TestCases/null_deref.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/lit_tests/TestCases/null_deref.cc?rev=201324&r1=201323&r2=201324&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/lit_tests/TestCases/null_deref.cc (original)
+++ compiler-rt/trunk/lib/asan/lit_tests/TestCases/null_deref.cc Thu Feb 13 07:04:39 2014
@@ -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]]
More information about the llvm-commits
mailing list