Index: compiler-rt/lib/fuzzer/FuzzerInternal.h =================================================================== --- compiler-rt/lib/fuzzer/FuzzerInternal.h +++ compiler-rt/lib/fuzzer/FuzzerInternal.h @@ -124,6 +124,7 @@ size_t NumberOfNewUnitsAdded = 0; size_t LastCorpusUpdateRun = 0; + size_t LastTmpMaxPrintRun = 0; bool HasMoreMallocsThanFrees = false; size_t NumberOfLeakDetectionAttempts = 0; Index: compiler-rt/lib/fuzzer/FuzzerLoop.cpp =================================================================== --- compiler-rt/lib/fuzzer/FuzzerLoop.cpp +++ compiler-rt/lib/fuzzer/FuzzerLoop.cpp @@ -761,10 +761,14 @@ Options.LenControl * Log(TmpMaxMutationLen)) { TmpMaxMutationLen = Min(MaxMutationLen, TmpMaxMutationLen + Log(TmpMaxMutationLen)); - if (TmpMaxMutationLen <= MaxMutationLen) + if (TmpMaxMutationLen <= MaxMutationLen && + TotalNumberOfRuns - LastTmpMaxPrintRun > + Options.LenControl * Log(TmpMaxMutationLen) * 10) { Printf("#%zd\tTEMP_MAX_LEN: %zd (%zd %zd)\n", TotalNumberOfRuns, TmpMaxMutationLen, Options.LenControl, LastCorpusUpdateRun); + LastTmpMaxPrintRun = TotalNumberOfRuns; + } LastCorpusUpdateRun = TotalNumberOfRuns; } } else {