diff --git a/afl/src/executors/inmemory.rs b/afl/src/executors/inmemory.rs index d72c4612d5..efcd3276af 100644 --- a/afl/src/executors/inmemory.rs +++ b/afl/src/executors/inmemory.rs @@ -45,6 +45,7 @@ where I: Input + HasTargetBytes, OT: ObserversTuple, { + #[inline] fn pre_exec( &mut self, state: &State, @@ -65,6 +66,7 @@ where Ok(()) } + #[inline] fn post_exec( &mut self, _state: &State, diff --git a/afl/src/executors/mod.rs b/afl/src/executors/mod.rs index 52256e7be2..ca7ff4970b 100644 --- a/afl/src/executors/mod.rs +++ b/afl/src/executors/mod.rs @@ -78,6 +78,8 @@ pub trait Executor: Named where I: Input, { + #[inline] + /// Called right before exexution starts fn pre_exec( &mut self, _state: &State, @@ -94,6 +96,8 @@ where Ok(()) } + #[inline] + /// Called right after execution finished. fn post_exec( &mut self, _state: &State,