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

Function MinimizeCrashInputInternalStep

fuzz/libfuzzer/FuzzerDriver.cpp:501–515  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

499}
500
501int MinimizeCrashInputInternalStep(Fuzzer *F, InputCorpus *Corpus) {
502 assert(Inputs->size() == 1);
503 std::string InputFilePath = Inputs->at(0);
504 Unit U = FileToVector(InputFilePath);
505 Printf("INFO: Starting MinimizeCrashInputInternalStep: %zd\n", U.size());
506 if (U.size() < 2) {
507 Printf("INFO: The input is small enough, exiting\n");
508 exit(0);
509 }
510 F->SetMaxInputLen(U.size());
511 F->SetMaxMutationLen(U.size() - 1);
512 F->MinimizeCrashLoop(U);
513 Printf("INFO: Done MinimizeCrashInputInternalStep, no crashes found\n");
514 exit(0);
515}
516
517void Merge(Fuzzer *F, FuzzingOptions &Options,
518 const std::vector<std::string> &Args,

Callers 1

FuzzerDriverFunction · 0.85

Calls 6

FileToVectorFunction · 0.85
SetMaxInputLenMethod · 0.80
SetMaxMutationLenMethod · 0.80
MinimizeCrashLoopMethod · 0.80
PrintfFunction · 0.70
sizeMethod · 0.45

Tested by

no test coverage detected