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

Method DumpCurrentUnit

fuzz/libfuzzer/FuzzerLoop.cpp:181–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

179}
180
181void Fuzzer::DumpCurrentUnit(const char *Prefix) {
182 if (!CurrentUnitData)
183 return; // Happens when running individual inputs.
184 ScopedDisableMsanInterceptorChecks S;
185 MD.PrintMutationSequence();
186 Printf("; base unit: %s\n", Sha1ToString(BaseSha1).c_str());
187 size_t UnitSize = CurrentUnitSize;
188 if (UnitSize <= kMaxUnitSizeToPrint) {
189 PrintHexArray(CurrentUnitData, UnitSize, "\n");
190 PrintASCII(CurrentUnitData, UnitSize, "\n");
191 }
192 WriteUnitToFileWithPrefix({CurrentUnitData, CurrentUnitData + UnitSize},
193 Prefix);
194}
195
196NO_SANITIZE_MEMORY
197void Fuzzer::DeathCallback() {

Callers

nothing calls this directly

Calls 6

PrintHexArrayFunction · 0.85
PrintMutationSequenceMethod · 0.80
PrintfFunction · 0.70
Sha1ToStringFunction · 0.70
PrintASCIIFunction · 0.70
c_strMethod · 0.45

Tested by

no test coverage detected