diff options
author | Walter Lee <waltl@google.com> | 2017-11-16 23:28:50 +0000 |
---|---|---|
committer | Walter Lee <waltl@google.com> | 2017-11-16 23:28:50 +0000 |
commit | c09ddbcdcff289ab551f32a3dc28d679bc80c126 (patch) | |
tree | c12e5a6aeb17706fb7b20b6b33b55bb006f28888 /test/asan/TestCases/use-after-delete.cc | |
parent | 4c4cf35c0337da75c75f400132b8712a7dfe8e5f (diff) | |
download | compiler-rt-c09ddbcdcff289ab551f32a3dc28d679bc80c126.tar.gz |
[asan] Port tests to shadow scale of 5
The tests are ported as follows:
contiguous_container_crash.cc
use-after-delete.cc
use-after-free.cc
Replace hardwired shadow granularity in CHECK statements with regex.
max_redzone.cc
Bump max_redzone parameter to 32.
memset_test.cc
Bump size parameter of __asan_poison_memory_region to 32.
scariness_score_test.cc
For "far-from-bounds" heap overflow, make sure overflow is more than
one shadow granularity away.
At large shadow granularity, there is not enough redzone between
stack elements to detect far-from-bounds, so fake out that test.
Differential Revision: https://reviews.llvm.org/D39773
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@318470 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/asan/TestCases/use-after-delete.cc')
-rw-r--r-- | test/asan/TestCases/use-after-delete.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/asan/TestCases/use-after-delete.cc b/test/asan/TestCases/use-after-delete.cc index 1cc8c2f07..44404cd18 100644 --- a/test/asan/TestCases/use-after-delete.cc +++ b/test/asan/TestCases/use-after-delete.cc @@ -24,7 +24,7 @@ int main() { // CHECK-Linux: {{ #0 0x.* in operator new\[\]}} // CHECK-Linux: {{ #1 0x.* in main .*use-after-delete.cc:}}[[@LINE-16]] - // CHECK: Shadow byte legend (one shadow byte represents 8 application bytes): + // CHECK: Shadow byte legend (one shadow byte represents {{[0-9]+}} application bytes): // CHECK: Global redzone: // CHECK: ASan internal: } |