Skip to content

Commit

Permalink
Minimizer fix (AFLplusplus#2500)
Browse files Browse the repository at this point in the history
* Clear potentially out of date id

* fmt

* add mut
  • Loading branch information
mineo333 authored Aug 27, 2024
1 parent 3ca906b commit a8bccf9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libafl/src/corpus/minimizer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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."))
Expand Down

0 comments on commit a8bccf9

Please sign in to comment.