diff options
author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2014-02-19 13:40:41 +0000 |
---|---|---|
committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2014-02-19 13:40:41 +0000 |
commit | c12c6f948ef2e5ba22d79fd30f17fcb9af412e76 (patch) | |
tree | ac317ee77bf959449e6432915e0accc1ea7a3b9a /lib/asan/asan_report.h | |
parent | 17cf7c5c67e5a791cc98c8a2d937338b7a3f9207 (diff) | |
download | compiler-rt-c12c6f948ef2e5ba22d79fd30f17fcb9af412e76.tar.gz |
[asan] A different way of detectinb stack overflow.
Instead of checking stack limits that are not well defined for the main thread,
we rely on siginfo::si_code and distance from SP.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201673 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/asan/asan_report.h')
-rw-r--r-- | lib/asan/asan_report.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/asan/asan_report.h b/lib/asan/asan_report.h index c4e8611d2..84111b163 100644 --- a/lib/asan/asan_report.h +++ b/lib/asan/asan_report.h @@ -33,6 +33,8 @@ void DescribeThread(AsanThreadContext *context); // Different kinds of error reports. void NORETURN + ReportStackOverflow(uptr pc, uptr sp, uptr bp, void *context, uptr addr); +void NORETURN ReportSIGSEGV(uptr pc, uptr sp, uptr bp, void *context, uptr addr); void NORETURN ReportDoubleFree(uptr addr, StackTrace *free_stack); void NORETURN ReportFreeNotMalloced(uptr addr, StackTrace *free_stack); |