Skip to content

Commit 976d6b2

Browse files
[WithObservers] Call the wrapped observer's post run function (#1640)
* [WithObservers] Call the wrapped observer's post run function * fix typo and naming of variable
1 parent ad33ea0 commit 976d6b2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

libafl/src/executors/inprocess.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1693,7 +1693,7 @@ where
16931693

16941694
self.observers
16951695
.pre_exec_child_all(state, input)
1696-
.expect("Failed to run post_exec on observers");
1696+
.expect("Failed to run pre_exec on observers");
16971697

16981698
(self.harness_fn)(input);
16991699

libafl/src/executors/with_observers.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ where
3030
mgr: &mut EM,
3131
input: &Self::Input,
3232
) -> Result<ExitKind, Error> {
33-
self.executor.run_target(fuzzer, state, mgr, input)
33+
let ret = self.executor.run_target(fuzzer, state, mgr, input);
34+
self.executor.post_run_reset();
35+
ret
3436
}
3537
}
3638

0 commit comments

Comments
 (0)