Skip to content

Commit

Permalink
Update last found time when evaluating an input (AFLplusplus#2782)
Browse files Browse the repository at this point in the history
Co-authored-by: celian <cglenaz>
Co-authored-by: Dongjia "toka" Zhang <[email protected]>
  • Loading branch information
celi0n and tokatoka authored Dec 19, 2024
1 parent 5d70216 commit 09950cc
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions libafl/src/fuzzer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,8 @@ where
+ MaybeHasClientPerfMonitor
+ UsesInput<Input = <S::Corpus as Corpus>::Input>
+ HasCurrentTestcase
+ HasSolutions,
+ HasSolutions
+ HasLastFoundTime,
F: Feedback<EM, <S::Corpus as Corpus>::Input, OT, S>,
OF: Feedback<EM, <S::Corpus as Corpus>::Input, OT, S>,
OT: ObserversTuple<<S::Corpus as Corpus>::Input, S> + Serialize,
Expand Down Expand Up @@ -359,6 +360,9 @@ where
if send_events {
self.serialize_and_dispatch(state, manager, input, &exec_res, observers, exit_kind)?;
}
if exec_res != ExecuteInputResult::None {
*state.last_found_time_mut() = current_time();
}
Ok((exec_res, corpus_id))
}

Expand Down Expand Up @@ -505,7 +509,8 @@ where
+ MaybeHasClientPerfMonitor
+ HasCurrentTestcase
+ UsesInput<Input = <S::Corpus as Corpus>::Input>
+ HasExecutions,
+ HasExecutions
+ HasLastFoundTime,
<S::Corpus as Corpus>::Input: Input,
S::Solutions: Corpus<Input = <S::Corpus as Corpus>::Input>,
{
Expand Down

0 comments on commit 09950cc

Please sign in to comment.