[compiler-rt] [libFuzzer] Pass the current size to Mutate in MinimizeCrashLoop (PR #223470)

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 15 16:48:43 PDT 2026


================
@@ -926,11 +926,11 @@ void Fuzzer::MinimizeCrashLoop(const Unit &U) {
     for (int i = 0; i < Options.MutateDepth; i++) {
       size_t NewSize = MD.Mutate(CurrentUnitData, Size, MaxMutationLen);
----------------
vitalybuka wrote:

Just realized that we can avoid NewSize if we 

`Size = MD.Mutate(CurrentUnitData, Size, MaxMutationLen);`

https://github.com/llvm/llvm-project/pull/223470


More information about the llvm-commits mailing list