Skip to content

Commit

Permalink
aaaaaaaa
Browse files Browse the repository at this point in the history
  • Loading branch information
rmalmain committed Jun 24, 2024
1 parent 331dca9 commit c787687
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion fuzzers/sqlite_centralized_multi_machine/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions libafl/src/state/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1107,7 +1107,7 @@ where
}

/// Creates a new `State`, taking ownership of all of the individual components during fuzzing.
fn new_inner<F, O>(
fn _new<F, O>(
rand: R,
corpus: C,
solutions: SC,
Expand Down Expand Up @@ -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<F, O>(
pub fn with_dump_state<F, O>(
rand: R,
corpus: C,
solutions: SC,
Expand All @@ -1165,7 +1165,7 @@ where
F: Feedback<Self>,
O: Feedback<Self>,
{
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.
Expand All @@ -1180,7 +1180,7 @@ where
F: Feedback<Self>,
O: Feedback<Self>,
{
Self::new_inner(
Self::_new(
rand,
corpus,
solutions,
Expand Down
2 changes: 1 addition & 1 deletion utils/multi_machine_generator/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}

0 comments on commit c787687

Please sign in to comment.