[PATCH] D46277: [libFuzzer] Report at most one crash per input.
Matt Morehouse via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 30 11:15:34 PDT 2018
morehouse created this revision.
morehouse added a reviewer: kcc.
Herald added a subscriber: kubamracek.
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.
https://reviews.llvm.org/D46277
Files:
compiler-rt/lib/asan/asan_report.cc
compiler-rt/lib/fuzzer/FuzzerExtFunctions.def
compiler-rt/lib/fuzzer/FuzzerLoop.cpp
compiler-rt/lib/fuzzer/FuzzerTracePC.cpp
compiler-rt/lib/sanitizer_common/sanitizer_common.cc
compiler-rt/lib/sanitizer_common/sanitizer_common_interface.inc
compiler-rt/lib/sanitizer_common/sanitizer_interface_internal.h
compiler-rt/lib/sanitizer_common/weak_symbols.txt
compiler-rt/test/fuzzer/AcquireCrashStateTest.cpp
compiler-rt/test/fuzzer/acquire-crash-state.test
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46277.144595.patch
Type: text/x-patch
Size: 7124 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180430/23ef114e/attachment.bin>
More information about the llvm-commits
mailing list