diff --git a/libafl/src/stages/power.rs b/libafl/src/stages/power.rs index 4f984c8715..2b5a19a1da 100644 --- a/libafl/src/stages/power.rs +++ b/libafl/src/stages/power.rs @@ -79,7 +79,6 @@ where /// Gets the number of iterations as a random number fn iterations(&self, state: &mut S, corpus_idx: usize) -> Result { - let mut testcase = state.corpus().get(corpus_idx)?.borrow_mut(); let psmeta = state .metadata() .get::() @@ -89,6 +88,7 @@ where if self.strat == PowerSchedule::COE { fuzz_mu = self.fuzz_mu(state, psmeta)?; } + let mut testcase = state.corpus().get(corpus_idx)?.borrow_mut(); // 1 + state.rand_mut().below(DEFAULT_MUTATIONAL_MAX_ITERATIONS) as usize self.calculate_score(&mut testcase, psmeta, fuzz_mu)