summaryrefslogtreecommitdiffstats
path: root/compiler-rt
diff options
context:
space:
mode:
authorMatt Morehouse <mascasa@google.com>2018-05-02 02:55:28 +0000
committerMatt Morehouse <mascasa@google.com>2018-05-02 02:55:28 +0000
commit7764a04af007eca68eafcf5caaea560ed05e35a9 (patch)
tree850322d6d1f5c6de0180987547f1715d0738adea /compiler-rt
parent51d12d8885450e52a82fbebee4a33612551f0864 (diff)
downloadbcm5719-llvm-7764a04af007eca68eafcf5caaea560ed05e35a9.tar.gz
bcm5719-llvm-7764a04af007eca68eafcf5caaea560ed05e35a9.zip
[libFuzzer] Don't short-circuit from CrashCallback.
Short-circuiting causes tests to fail on Mac since libFuzzer crashes rather than exiting with an error code when an unexpected signal happens. llvm-svn: 331324
Diffstat (limited to 'compiler-rt')
-rw-r--r--compiler-rt/lib/fuzzer/FuzzerLoop.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/compiler-rt/lib/fuzzer/FuzzerLoop.cpp b/compiler-rt/lib/fuzzer/FuzzerLoop.cpp
index 7a26370b3d4..6cc220d9789 100644
--- a/compiler-rt/lib/fuzzer/FuzzerLoop.cpp
+++ b/compiler-rt/lib/fuzzer/FuzzerLoop.cpp
@@ -228,9 +228,8 @@ void Fuzzer::StaticFileSizeExceedCallback() {
}
void Fuzzer::CrashCallback() {
- if (EF->__sanitizer_acquire_crash_state &&
- !EF->__sanitizer_acquire_crash_state())
- return;
+ if (EF->__sanitizer_acquire_crash_state)
+ EF->__sanitizer_acquire_crash_state();
Printf("==%lu== ERROR: libFuzzer: deadly signal\n", GetPid());
if (EF->__sanitizer_print_stack_trace)
EF->__sanitizer_print_stack_trace();
OpenPOWER on IntegriCloud