| 179 | } |
| 180 | |
| 181 | void 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 | |
| 196 | NO_SANITIZE_MEMORY |
| 197 | void Fuzzer::DeathCallback() { |
nothing calls this directly
no test coverage detected