Remove unnecessary check in calibration stage (#1111)

* save

* fix
This commit is contained in:
Dongjia "toka" Zhang 2023-02-28 23:41:17 +09:00 committed by GitHub
parent fbe8cce1b8
commit 3e7322e395
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -104,16 +104,11 @@ where
corpus_idx: CorpusId,
) -> Result<(), Error> {
// Run this stage only once for each corpus entry and only if we haven't already inspected it
if state.corpus().get(corpus_idx)?.borrow().fuzz_level() > 0
|| state
.corpus()
.get(corpus_idx)?
.borrow()
.metadata()
.get::<SchedulerTestcaseMetaData>()
.map_or(false, |meta| meta.bitmap_size() != 0)
{
return Ok(());
let corpus = state.corpus().get(corpus_idx)?.borrow();
if corpus.fuzz_level() > 0 {
return Ok(());
}
}
let mut iter = self.stage_max;