summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/sanitizer_common/sanitizer_common_interface.inc
diff options
context:
space:
mode:
authorMatt Morehouse <mascasa@google.com>2018-05-01 21:01:53 +0000
committerMatt Morehouse <mascasa@google.com>2018-05-01 21:01:53 +0000
commit52fd16903569c0f8c3ca3dfe89d664969739f2f0 (patch)
treea9f129880c7874b0097db3342c415ae3954c0de5 /compiler-rt/lib/sanitizer_common/sanitizer_common_interface.inc
parentf70671582d6fead1f12ce35ad894db77c51b099a (diff)
downloadbcm5719-llvm-52fd16903569c0f8c3ca3dfe89d664969739f2f0.tar.gz
bcm5719-llvm-52fd16903569c0f8c3ca3dfe89d664969739f2f0.zip
[libFuzzer] Report at most one crash per input.
Summary: Fixes https://github.com/google/sanitizers/issues/788/, a deadlock caused by multiple crashes happening at the same time. Before printing a crash report, we now test and set an atomic flag. If the flag was already set, the crash handler returns immediately. Reviewers: kcc Reviewed By: kcc Subscribers: llvm-commits, kubamracek Differential Revision: https://reviews.llvm.org/D46277 llvm-svn: 331310
Diffstat (limited to 'compiler-rt/lib/sanitizer_common/sanitizer_common_interface.inc')
-rw-r--r--compiler-rt/lib/sanitizer_common/sanitizer_common_interface.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_common_interface.inc b/compiler-rt/lib/sanitizer_common/sanitizer_common_interface.inc
index 2568df3a5bf..377580cb0b4 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_common_interface.inc
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_common_interface.inc
@@ -8,6 +8,7 @@
//===----------------------------------------------------------------------===//
// Sanitizer Common interface list.
//===----------------------------------------------------------------------===//
+INTERFACE_FUNCTION(__sanitizer_acquire_crash_state)
INTERFACE_FUNCTION(__sanitizer_annotate_contiguous_container)
INTERFACE_FUNCTION(__sanitizer_contiguous_container_find_bad_address)
INTERFACE_FUNCTION(__sanitizer_set_death_callback)
OpenPOWER on IntegriCloud