diff --git a/libafl/src/corpus/minimizer.rs b/libafl/src/corpus/minimizer.rs index d4c3aaf381..5dce383bfb 100644 --- a/libafl/src/corpus/minimizer.rs +++ b/libafl/src/corpus/minimizer.rs @@ -238,6 +238,8 @@ where .scheduler_mut() .on_remove(state, id, &Some(removed))?; } + + *state.corpus_mut().current_mut() = None; //we may have removed the current ID from the corpus Ok(()) } else { Err(Error::unknown("Corpus minimization failed; unsat."))