| 253 | } |
| 254 | |
| 255 | void Fuzzer::ExitCallback() { |
| 256 | if (!RunningUserCallback) |
| 257 | return; // This exit did not come from the user callback |
| 258 | if (EF->__sanitizer_acquire_crash_state && |
| 259 | !EF->__sanitizer_acquire_crash_state()) |
| 260 | return; |
| 261 | Printf("==%lu== ERROR: libFuzzer: fuzz target exited\n", GetPid()); |
| 262 | PrintStackTrace(); |
| 263 | Printf("SUMMARY: libFuzzer: fuzz target exited\n"); |
| 264 | DumpCurrentUnit("crash-"); |
| 265 | PrintFinalStats(); |
| 266 | _Exit(Options.ErrorExitCode); |
| 267 | } |
| 268 | |
| 269 | void Fuzzer::MaybeExitGracefully() { |
| 270 | if (!F->GracefulExitRequested) return; |
no test coverage detected