[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
This commit is contained in:
parent
ad33ea086b
commit
976d6b2e97
@ -1693,7 +1693,7 @@ where
|
|||||||
|
|
||||||
self.observers
|
self.observers
|
||||||
.pre_exec_child_all(state, input)
|
.pre_exec_child_all(state, input)
|
||||||
.expect("Failed to run post_exec on observers");
|
.expect("Failed to run pre_exec on observers");
|
||||||
|
|
||||||
(self.harness_fn)(input);
|
(self.harness_fn)(input);
|
||||||
|
|
||||||
|
@ -30,7 +30,9 @@ where
|
|||||||
mgr: &mut EM,
|
mgr: &mut EM,
|
||||||
input: &Self::Input,
|
input: &Self::Input,
|
||||||
) -> Result<ExitKind, Error> {
|
) -> Result<ExitKind, Error> {
|
||||||
self.executor.run_target(fuzzer, state, mgr, input)
|
let ret = self.executor.run_target(fuzzer, state, mgr, input);
|
||||||
|
self.executor.post_run_reset();
|
||||||
|
ret
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user