Skip to content

Commit

Permalink
Fix incrementing found_objective(AFLplusplus#2139)
Browse files Browse the repository at this point in the history
  • Loading branch information
tokatoka authored May 3, 2024
1 parent 382673b commit 41ff743
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libafl/src/corpus/testcase.rs
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ where

/// Adds one objectives to the `objectives_found` counter. Mostly called from crash handler or executor.
pub fn found_objective(&mut self) {
let _ = self.objectives_found.saturating_add(1);
self.objectives_found = self.objectives_found.saturating_add(1);
}
}

Expand Down

0 comments on commit 41ff743

Please sign in to comment.