[asan] Reduce flakiness in stack-overflow detection
authorKuba Mracek <mracek@apple.com>
Fri, 13 Apr 2018 00:29:24 +0000 (00:29 +0000)
committerKuba Mracek <mracek@apple.com>
Fri, 13 Apr 2018 00:29:24 +0000 (00:29 +0000)
commit0fb14e944c739baba542882ce1504d00da25c9f7
tree9c306d8bbd8f7f2628b953e6382a4336ffff8187
parent8fc5b84349b84d987d5dca8c85490c72a68324df
[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.

llvm-svn: 329980
compiler-rt/lib/sanitizer_common/sanitizer_posix_libcdep.cc
compiler-rt/test/asan/TestCases/scariness_score_test.cc