Skip to content

Commit

Permalink
fuzz: Use mimalloc
Browse files Browse the repository at this point in the history
  • Loading branch information
wcampbell0x2a committed Apr 14, 2024
1 parent 9707aef commit b37e282
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 11 deletions.
41 changes: 30 additions & 11 deletions fuzz/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions fuzz/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ cargo-fuzz = true
[dependencies]
# libfuzzer-sys = "0.4"
libfuzzer-sys = { git = "https://github.com/AFLplusplus/LibAFL.git", branch = "libfuzzer-best", package = "libafl_libfuzzer" }
mimalloc = { version = "*", default-features = false }

[dependencies.backhand]
path = "../backhand"
Expand Down
5 changes: 5 additions & 0 deletions fuzz/fuzz_targets/filesystem.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#![no_main]

use mimalloc::MiMalloc;

#[global_allocator]
static GLOBAL: MiMalloc = MiMalloc;

use backhand::FilesystemReader;
use libfuzzer_sys::fuzz_target;

Expand Down

0 comments on commit b37e282

Please sign in to comment.