diff --git a/Cargo.toml b/Cargo.toml index 66aae60eb5..bdf384435d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,3 +18,5 @@ xxhash-rust = { version = "0.8.0-beta.5", features = ["xxh3"] } # xxh3 hashing f hashbrown = "0.9" # A faster hashmap, nostd compatible libc = "0.2" # For (*nix) libc num = "*" + +#shared_memory = { version = "0.11.3", optional = true } # shared mem for windows and unix \ No newline at end of file diff --git a/src/corpus/testcase.rs b/src/corpus/testcase.rs index 74cc3026b7..424cb8138f 100644 --- a/src/corpus/testcase.rs +++ b/src/corpus/testcase.rs @@ -168,9 +168,11 @@ where /// Make sure to return a valid input instance loading it from disk if not in memory pub fn load_input(&mut self) -> Result<&I, AflError> { if self.input.is_none() { - let input = I::from_file(self.filename.as_ref().ok_or(AflError::EmptyOptional( - "filename not specified".into(), - ))?)?; + let input = I::from_file( + self.filename + .as_ref() + .ok_or(AflError::EmptyOptional("filename not specified".into()))?, + )?; self.input = Some(input); } Ok(self.input.as_ref().unwrap()) diff --git a/src/engines/mod.rs b/src/engines/mod.rs index 591069aed2..68a8879814 100644 --- a/src/engines/mod.rs +++ b/src/engines/mod.rs @@ -199,7 +199,7 @@ where fn fuzz_one(&mut self, state: &mut S) -> Result { let (testcase, idx) = state.corpus_mut().next()?; - #[cfg(feature = "std")] + #[cfg(feature = "std")] println!("Cur entry: {}\tExecutions: {}", idx, state.executions()); for stage in self.stages_mut() { stage.perform(testcase.clone(), state)?; diff --git a/src/events/mod.rs b/src/events/mod.rs index a6cc3fe4c7..6b99f5e3a4 100644 --- a/src/events/mod.rs +++ b/src/events/mod.rs @@ -1,3 +1,7 @@ +pub mod llmp; +mod llmp_translated; +pub use crate::events::llmp::LLMP; + use core::any::{Any, TypeId}; use core::fmt::Display; @@ -80,7 +84,7 @@ impl EventManager for LoggerEventManager { } fn fire(&mut self, _event: E) -> Result<(), AflError> { - #[cfg(feature = "std")] + #[cfg(feature = "std")] println!("{}", _event); Ok(()) }