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

Method Stop

fuzz/libfuzzer/FuzzerLoop.cpp:62–71  ·  view source on GitHub ↗

Returns true if there were more mallocs than frees.

Source from the content-addressed store, hash-verified

60 }
61 // Returns true if there were more mallocs than frees.
62 bool Stop() {
63 if (TraceLevel)
64 Printf("MallocFreeTracer: STOP %zd %zd (%s)\n", Mallocs.load(),
65 Frees.load(), Mallocs == Frees ? "same" : "DIFFERENT");
66 bool Result = Mallocs > Frees;
67 Mallocs = 0;
68 Frees = 0;
69 TraceLevel = 0;
70 return Result;
71 }
72 std::atomic<size_t> Mallocs;
73 std::atomic<size_t> Frees;
74 int TraceLevel = 0;

Callers 1

ExecuteCallbackMethod · 0.45

Calls 2

loadMethod · 0.80
PrintfFunction · 0.70

Tested by

no test coverage detected