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

Method RssLimitCallback

fuzz/libfuzzer/FuzzerLoop.cpp:325–337  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

323}
324
325void Fuzzer::RssLimitCallback() {
326 if (EF->__sanitizer_acquire_crash_state &&
327 !EF->__sanitizer_acquire_crash_state())
328 return;
329 Printf("==%lu== ERROR: libFuzzer: out-of-memory (used: %zdMb; limit: %dMb)\n",
330 GetPid(), GetPeakRSSMb(), Options.RssLimitMb);
331 Printf(" To change the out-of-memory limit use -rss_limit_mb=<N>\n\n");
332 PrintMemoryProfile();
333 DumpCurrentUnit("oom-");
334 Printf("SUMMARY: libFuzzer: out-of-memory\n");
335 PrintFinalStats();
336 _Exit(Options.OOMExitCode); // Stop right now.
337}
338
339void Fuzzer::PrintStats(const char *Where, const char *End, size_t Units,
340 size_t Features) {

Callers 1

RssThreadFunction · 0.80

Calls 4

PrintMemoryProfileFunction · 0.85
PrintfFunction · 0.70
GetPidFunction · 0.70
GetPeakRSSMbFunction · 0.70

Tested by

no test coverage detected