Calibration fix (#578)

* fix

* fix

* fix

* fix

* fmt
This commit is contained in:
Dongjia Zhang 2022-03-26 21:49:17 +09:00 committed by GitHub
parent acba89b92a
commit f906201dcb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,6 +58,22 @@ where
mgr: &mut EM,
corpus_idx: usize,
) -> Result<(), Error> {
// Run this stage only once for each corpus entry
if state
.corpus()
.get(corpus_idx)?
.borrow_mut()
.metadata()
.get::<PowerScheduleTestcaseMetaData>()
.ok_or_else(|| {
Error::KeyNotFound("PowerScheduleTescaseMetatdata not found".to_string())
})?
.fuzz_level()
> 0
{
return Ok(());
}
let mut iter = self.stage_max;
let handicap = state
.metadata()