Skip to content

Commit

Permalink
Hashbrownify libfuzzer_runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
domenukk committed Jul 12, 2024
1 parent b57e91f commit 6a313aa
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 10 deletions.
1 change: 1 addition & 0 deletions libafl_libfuzzer/libafl_libfuzzer_runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ mimalloc = { version = "0.1.34", default-features = false }
num-traits = "0.2.15"
rand = "0.8.5"
serde = { version = "1.0", features = ["derive"] } # serialization lib
hashbrown = "0.14"

# for identifying if we can grimoire-ify
utf8-chars = "3.0.1"
Expand Down
2 changes: 2 additions & 0 deletions libafl_libfuzzer/libafl_libfuzzer_runtime/rustfmt.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
group_imports = "StdExternalCrate"
imports_granularity = "Crate"
3 changes: 2 additions & 1 deletion libafl_libfuzzer/libafl_libfuzzer_runtime/src/corpus.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
use std::{
cell::RefCell,
collections::{hash_map::Entry, BTreeMap, HashMap},
collections::BTreeMap,
io::ErrorKind,
path::PathBuf,
sync::atomic::{AtomicU64, Ordering},
};

use hashbrown::{hash_map::Entry, HashMap};
use libafl::{
corpus::{
inmemory::{TestcaseStorage, TestcaseStorageMap},
Expand Down
7 changes: 2 additions & 5 deletions libafl_libfuzzer/libafl_libfuzzer_runtime/src/misc.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
use std::{
collections::VecDeque,
path::PathBuf,
};
use hashbrown::HashSet;
use std::{collections::VecDeque, path::PathBuf};

use hashbrown::HashSet;
use libafl::{Error, HasMetadata};
use libafl_bolts::impl_serdeany;
use serde::{Deserialize, Serialize};
Expand Down
6 changes: 2 additions & 4 deletions libafl_libfuzzer/libafl_libfuzzer_runtime/src/schedulers.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
use std::{
collections::{BTreeSet, HashMap},
marker::PhantomData,
};
use std::{collections::BTreeSet, marker::PhantomData};

use hashbrown::HashMap;
use libafl::{
corpus::{Corpus, CorpusId, Testcase},
feedbacks::MapNoveltiesMetadata,
Expand Down

0 comments on commit 6a313aa

Please sign in to comment.