From a2da080fa68dad7bba6f116632f3999d28ec3f40 Mon Sep 17 00:00:00 2001 From: "Dongjia \"toka\" Zhang" Date: Wed, 19 Jun 2024 11:57:27 +0200 Subject: [PATCH] Delete wrong exec count increment (#2330) --- libafl/src/executors/combined.rs | 2 -- libafl/src/stages/calibrate.rs | 2 -- libafl/src/stages/generalization.rs | 2 -- libafl/src/stages/tracing.rs | 4 ---- libafl_targets/src/cmps/stages/aflpptracing.rs | 4 ---- 5 files changed, 14 deletions(-) diff --git a/libafl/src/executors/combined.rs b/libafl/src/executors/combined.rs index 245327106b..865c3ec308 100644 --- a/libafl/src/executors/combined.rs +++ b/libafl/src/executors/combined.rs @@ -57,8 +57,6 @@ where mgr: &mut EM, input: &Self::Input, ) -> Result { - *state.executions_mut() += 1; - self.primary.run_target(fuzzer, state, mgr, input) } } diff --git a/libafl/src/stages/calibrate.rs b/libafl/src/stages/calibrate.rs index 6b19043532..ae9d43a2f3 100644 --- a/libafl/src/stages/calibrate.rs +++ b/libafl/src/stages/calibrate.rs @@ -307,8 +307,6 @@ where data.set_handicap(handicap); } - *state.executions_mut() += u64::try_from(i).unwrap(); - // Send the stability event to the broker if unstable_found { if let Some(meta) = state.metadata_map().get::() { diff --git a/libafl/src/stages/generalization.rs b/libafl/src/stages/generalization.rs index d1bcadbd80..533eb5e311 100644 --- a/libafl/src/stages/generalization.rs +++ b/libafl/src/stages/generalization.rs @@ -372,8 +372,6 @@ where let exit_kind = executor.run_target(fuzzer, state, manager, input)?; mark_feature_time!(state, PerfFeature::TargetExecution); - *state.executions_mut() += 1; - start_timer!(state); executor .observers_mut() diff --git a/libafl/src/stages/tracing.rs b/libafl/src/stages/tracing.rs index 052adc98b2..4dcd0103c4 100644 --- a/libafl/src/stages/tracing.rs +++ b/libafl/src/stages/tracing.rs @@ -67,8 +67,6 @@ where .run_target(fuzzer, state, manager, &input)?; mark_feature_time!(state, PerfFeature::TargetExecution); - *state.executions_mut() += 1; - start_timer!(state); self.tracer_executor .observers_mut() @@ -200,8 +198,6 @@ where let exit_kind = executor.run_target(fuzzer, state, manager, &input)?; mark_feature_time!(state, PerfFeature::TargetExecution); - *state.executions_mut() += 1; - start_timer!(state); executor .shadow_observers_mut() diff --git a/libafl_targets/src/cmps/stages/aflpptracing.rs b/libafl_targets/src/cmps/stages/aflpptracing.rs index 790fb4bbcd..a248e6d760 100644 --- a/libafl_targets/src/cmps/stages/aflpptracing.rs +++ b/libafl_targets/src/cmps/stages/aflpptracing.rs @@ -87,8 +87,6 @@ where self.tracer_executor .run_target(fuzzer, state, manager, &unmutated_input)?; - *state.executions_mut() += 1; - self.tracer_executor .observers_mut() .post_exec_all(state, &unmutated_input, &exit_kind)?; @@ -121,8 +119,6 @@ where .tracer_executor .run_target(fuzzer, state, manager, &mutated_input)?; - *state.executions_mut() += 1; - self.tracer_executor .observers_mut() .post_exec_all(state, &mutated_input, &exit_kind)?;