Home | History | Annotate | Download | only in Fuzzer

Lines Matching refs:Unit

237     Printf("ALARM: working on the last Unit for %zd seconds\n", Seconds);
320 std::vector<Unit> AdditionalCorpus;
347 std::stable_sort(V->begin(), V->end(), [](const Unit &A, const Unit &B) {
353 void Fuzzer::TruncateUnits(std::vector<Unit> *NewCorpus) {
363 Unit U1(U.begin(), U.begin() + S);
373 std::vector<Unit> NewCorpus;
438 Printf("Slowest unit: %zd s:\n", TimeOfLongestUnitInSeconds);
439 WriteUnitToFileWithPrefix({Data, Data + Size}, "slow-unit-");
461 // We copy the contents of Unit into a separate heap buffer
487 void Fuzzer::WriteToOutputCorpus(const Unit &U) {
498 void Fuzzer::WriteUnitToFileWithPrefix(const Unit &U, const char *Prefix) {
505 Printf("artifact_prefix='%s'; Test unit written to %s\n",
521 void Fuzzer::PrintStatusForNewUnit(const Unit &U) {
532 void Fuzzer::ReportNewCoverage(const Unit &U) {
545 // common thing between them is that we can say "this unit found new stuff".
648 assert(Size <= Options.MaxLen && "Oversized Unit");
654 assert(NewSize > 0 && "Mutator returned empty unit");
656 "Mutator return overisized unit");
667 // Returns an index of random unit from the corpus to mutate.
685 // - Choose one random unit.
687 // - Start fuzzing as if the chosen unit was the only element of the corpus.
695 Unit U = ChooseUnitToMutate();
699 std::vector<Unit> SavedCorpus;