From 41ff7438eb289e0d1b1b73a976af602a42236c78 Mon Sep 17 00:00:00 2001 From: "Dongjia \"toka\" Zhang" Date: Fri, 3 May 2024 23:30:14 +0200 Subject: [PATCH] Fix incrementing found_objective(#2139) --- libafl/src/corpus/testcase.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libafl/src/corpus/testcase.rs b/libafl/src/corpus/testcase.rs index ded6265777..2296d4f323 100644 --- a/libafl/src/corpus/testcase.rs +++ b/libafl/src/corpus/testcase.rs @@ -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); } }