From c787687c999f019eaad54a63ee7a820df0f81579 Mon Sep 17 00:00:00 2001 From: Romain Malmain Date: Mon, 24 Jun 2024 14:55:53 +0200 Subject: [PATCH] aaaaaaaa --- fuzzers/sqlite_centralized_multi_machine/src/lib.rs | 2 +- libafl/src/state/mod.rs | 8 ++++---- utils/multi_machine_generator/src/main.rs | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/fuzzers/sqlite_centralized_multi_machine/src/lib.rs b/fuzzers/sqlite_centralized_multi_machine/src/lib.rs index 3c8a45c2ec..ade426379f 100644 --- a/fuzzers/sqlite_centralized_multi_machine/src/lib.rs +++ b/fuzzers/sqlite_centralized_multi_machine/src/lib.rs @@ -178,7 +178,7 @@ pub extern "C" fn libafl_main() { // If not restarting, create a State from scratch let mut state = state.unwrap_or_else(|| { - StdState::new_with_dump_state( + StdState::with_dump_state( // RNG StdRand::new(), // Corpus that will be evolved, we keep it in memory for performance diff --git a/libafl/src/state/mod.rs b/libafl/src/state/mod.rs index 99c5a440c8..b58278ffaa 100644 --- a/libafl/src/state/mod.rs +++ b/libafl/src/state/mod.rs @@ -1107,7 +1107,7 @@ where } /// Creates a new `State`, taking ownership of all of the individual components during fuzzing. - fn new_inner( + fn _new( rand: R, corpus: C, solutions: SC, @@ -1153,7 +1153,7 @@ where /// Creates a new `State`, taking ownership of all of the individual components during fuzzing. #[cfg(feature = "dump_state")] - pub fn new_with_dump_state( + pub fn with_dump_state( rand: R, corpus: C, solutions: SC, @@ -1165,7 +1165,7 @@ where F: Feedback, O: Feedback, { - Self::new_inner(rand, corpus, solutions, feedback, objective, dump_state_dir) + Self::_new(rand, corpus, solutions, feedback, objective, dump_state_dir) } /// Creates a new `State`, taking ownership of all of the individual components during fuzzing. @@ -1180,7 +1180,7 @@ where F: Feedback, O: Feedback, { - Self::new_inner( + Self::_new( rand, corpus, solutions, diff --git a/utils/multi_machine_generator/src/main.rs b/utils/multi_machine_generator/src/main.rs index cc24e5b621..ccb560f033 100644 --- a/utils/multi_machine_generator/src/main.rs +++ b/utils/multi_machine_generator/src/main.rs @@ -49,6 +49,6 @@ fn main() { if let Some(json_path) = opt.json_output { let cfg = multi_machine_graph.get_config(opt.default_port); let cfg_json = serde_json::to_string_pretty(&cfg).unwrap(); - fs::write(json_path, &cfg_json).unwrap(); + fs::write(json_path, cfg_json).unwrap(); } }