Skip to content

Commit

Permalink
Delete wrong exec count increment (AFLplusplus#2330)
Browse files Browse the repository at this point in the history
  • Loading branch information
tokatoka authored Jun 19, 2024
1 parent e64f0fb commit a2da080
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 14 deletions.
2 changes: 0 additions & 2 deletions libafl/src/executors/combined.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ where
mgr: &mut EM,
input: &Self::Input,
) -> Result<ExitKind, Error> {
*state.executions_mut() += 1;

self.primary.run_target(fuzzer, state, mgr, input)
}
}
Expand Down
2 changes: 0 additions & 2 deletions libafl/src/stages/calibrate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<UnstableEntriesMetadata>() {
Expand Down
2 changes: 0 additions & 2 deletions libafl/src/stages/generalization.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
4 changes: 0 additions & 4 deletions libafl/src/stages/tracing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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()
Expand Down
4 changes: 0 additions & 4 deletions libafl_targets/src/cmps/stages/aflpptracing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)?;
Expand Down Expand Up @@ -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)?;
Expand Down

0 comments on commit a2da080

Please sign in to comment.