Skip to content

Commit

Permalink
[libFuzzer] exit without running atexit handlers in libfuzzer's crash…
Browse files Browse the repository at this point in the history
… handler

Summary:
It's not safe to assume that atexit handlers can be run once the app crashed.

Patch by Jochen Eisinger.

Reviewers: kcc, vitalybuka

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D32640

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@302076 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
vitalybuka committed May 3, 2017
1 parent c272a4d commit 0a73805
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Fuzzer/FuzzerLoop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ void Fuzzer::CrashCallback() {
Printf("SUMMARY: libFuzzer: deadly signal\n");
DumpCurrentUnit("crash-");
PrintFinalStats();
exit(Options.ErrorExitCode);
_Exit(Options.ErrorExitCode); // Stop right now.
}

void Fuzzer::InterruptCallback() {
Expand Down

0 comments on commit 0a73805

Please sign in to comment.