Lines Matching defs:U
429 auto &U = AdditionalCorpus[i];
430 if (U.size() > MaxSize)
431 U.resize(MaxSize);
432 if (!Corpus.HasUnit(U)) {
433 if (RunOne(U.data(), U.size())) {
551 II->U.size() > Size) {
627 std::string Fuzzer::WriteToOutputCorpus(const Unit &U) {
629 assert(IsASCII(U));
632 std::string Path = DirPlusFile(Options.OutputCorpus, Hash(U));
633 WriteToFile(U, Path);
635 Printf("Written %zd bytes to %s\n", U.size(), Path.c_str());
639 void Fuzzer::WriteUnitToFileWithPrefix(const Unit &U, const char *Prefix) {
642 std::string Path = Options.ArtifactPrefix + Prefix + Hash(U);
645 WriteToFile(U, Path);
648 if (U.size() <= kMaxUnitSizeToPrint)
649 Printf("Base64: %s\n", Base64(U).c_str());
652 void Fuzzer::PrintStatusForNewUnit(const Unit &U, const char *Text) {
657 Printf(" L: %zd/%zd ", U.size(), Corpus.MaxInputSize());
663 void Fuzzer::ReportNewCoverage(InputInfo *II, const Unit &U) {
666 PrintStatusForNewUnit(U, II->Reduced ? "REDUCE" : "NEW ");
667 WriteToOutputCorpus(U);
725 MD.SetCrossOverWith(&CrossOverII.U);
727 const auto &U = II.U;
730 size_t Size = U.size();
732 memcpy(CurrentUnitData, U.data(), Size);
737 Min(MaxMutationLen, Max(U.size(), TmpMaxMutationLen));
811 Unit U({'\n'}); // Valid ASCII input.
812 RunOne(U.data(), U.size());
827 auto U = FileToVector(SF.File, MaxInputLen, /*ExitOnError=*/false);
828 assert(U.size() <= MaxInputLen);
829 RunOne(U.data(), U.size(), /*MayDeleteFile*/ false, /*II*/ nullptr,
833 TryDetectingAMemoryLeak(U.data(), U.size(),
914 void Fuzzer::MinimizeCrashLoop(const Unit &U) {
915 if (U.size() <= 1)
919 memcpy(CurrentUnitData, U.data(), U.size());
921 size_t NewSize = MD.Mutate(CurrentUnitData, U.size(), MaxMutationLen);