MCPcopy Create free account
hub / github.com/HexHive/NASS / ExitCallback

Method ExitCallback

fuzz/libfuzzer/FuzzerLoop.cpp:255–267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

253}
254
255void 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
269void Fuzzer::MaybeExitGracefully() {
270 if (!F->GracefulExitRequested) return;

Callers 1

StaticExitCallbackMethod · 0.80

Calls 3

PrintStackTraceFunction · 0.85
PrintfFunction · 0.70
GetPidFunction · 0.70

Tested by

no test coverage detected