summaryrefslogtreecommitdiff
path: root/test/asan/TestCases/max_redzone.cc
diff options
context:
space:
mode:
authorWalter Lee <waltl@google.com>2017-11-16 23:28:50 +0000
committerWalter Lee <waltl@google.com>2017-11-16 23:28:50 +0000
commitc09ddbcdcff289ab551f32a3dc28d679bc80c126 (patch)
treec12e5a6aeb17706fb7b20b6b33b55bb006f28888 /test/asan/TestCases/max_redzone.cc
parent4c4cf35c0337da75c75f400132b8712a7dfe8e5f (diff)
[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/max_redzone.cc')
-rw-r--r--test/asan/TestCases/max_redzone.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/asan/TestCases/max_redzone.cc b/test/asan/TestCases/max_redzone.cc
index e2a0a2bde..99c886d1e 100644
--- a/test/asan/TestCases/max_redzone.cc
+++ b/test/asan/TestCases/max_redzone.cc
@@ -1,8 +1,8 @@
// Test max_redzone runtime option.
-// RUN: %clangxx_asan -O0 %s -o %t && %env_asan_opts=max_redzone=16 %run %t 0 2>&1
+// RUN: %clangxx_asan -O0 %s -o %t && %env_asan_opts=max_redzone=32 %run %t 0 2>&1
// RUN: %clangxx_asan -O0 %s -o %t && %run %t 1 2>&1
-// RUN: %clangxx_asan -O3 %s -o %t && %env_asan_opts=max_redzone=16 %run %t 0 2>&1
+// RUN: %clangxx_asan -O3 %s -o %t && %env_asan_opts=max_redzone=32 %run %t 0 2>&1
// RUN: %clangxx_asan -O3 %s -o %t && %run %t 1 2>&1
#include <stdio.h>