aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorKuba Mracek <mracek@apple.com>2018-04-13 00:29:24 +0000
committerKuba Mracek <mracek@apple.com>2018-04-13 00:29:24 +0000
commita33ed44a99ba5d2bbb24ae494b044921bb31303b (patch)
tree9e06d77a512dd8bf6c011bcda8e900dc35190631 /test
parent21c7e612f7e3070cd46306ba98882270b3665907 (diff)
[asan] Reduce flakiness in stack-overflow detection
IsStackOverflow only treats accesses within 512 bytes of SP as stack-overflow. This should really be the size of a page instead. The scariness_score_test.cc triggers stack overflow with frames that are even larger than a page, which can also trigger a fault that will not be recognized as stack-overflow. Let's just use smaller frames. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@329980 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/asan/TestCases/scariness_score_test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/asan/TestCases/scariness_score_test.cc b/test/asan/TestCases/scariness_score_test.cc
index 171bea9ee..fb174eb52 100644
--- a/test/asan/TestCases/scariness_score_test.cc
+++ b/test/asan/TestCases/scariness_score_test.cc
@@ -115,7 +115,7 @@ void DoubleFree() {
}
void StackOverflow(int Idx) {
- int some_stack[10000];
+ int some_stack[256];
static volatile int *x;
x = &some_stack[0];
if (Idx > 0)