summaryrefslogtreecommitdiff
path: root/lib/asan/asan_report.h
diff options
context:
space:
mode:
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>2014-02-19 13:40:41 +0000
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>2014-02-19 13:40:41 +0000
commitc12c6f948ef2e5ba22d79fd30f17fcb9af412e76 (patch)
treeac317ee77bf959449e6432915e0accc1ea7a3b9a /lib/asan/asan_report.h
parent17cf7c5c67e5a791cc98c8a2d937338b7a3f9207 (diff)
downloadcompiler-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.h2
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);