[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
This commit is contained in:
parent
ee107adb7d
commit
391f0234eb
|
@ -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]]
|
||||
|
|
Loading…
Reference in New Issue