revert large map (#2004)

This commit is contained in:
Dongjia "toka" Zhang 2024-04-05 17:06:47 +02:00 committed by GitHub
parent 1c85c3af13
commit 90c627a7e7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 4 deletions

View File

@ -30,7 +30,7 @@ use libafl_bolts::{
#[allow(clippy::similar_names)] #[allow(clippy::similar_names)]
pub fn main() { pub fn main() {
const MAP_SIZE: usize = 2621440; const MAP_SIZE: usize = 65536;
//Coverage map shared between observer and executor //Coverage map shared between observer and executor
#[cfg(target_vendor = "apple")] #[cfg(target_vendor = "apple")]

View File

@ -84,7 +84,7 @@ struct Opt {
#[allow(clippy::similar_names)] #[allow(clippy::similar_names)]
pub fn main() { pub fn main() {
const MAP_SIZE: usize = 2621440; const MAP_SIZE: usize = 65536;
let opt = Opt::parse(); let opt = Opt::parse();

View File

@ -84,7 +84,7 @@ struct Opt {
#[allow(clippy::similar_names)] #[allow(clippy::similar_names)]
pub fn main() { pub fn main() {
const MAP_SIZE: usize = 2621440; const MAP_SIZE: usize = 65536;
let opt = Opt::parse(); let opt = Opt::parse();

View File

@ -96,7 +96,7 @@ where
#[must_use] #[must_use]
pub fn new() -> Self { pub fn new() -> Self {
let map_size = option_env!("LIBAFL_EDGES_MAP_SIZE") let map_size = option_env!("LIBAFL_EDGES_MAP_SIZE")
.map_or(Ok(2621440), str::parse) .map_or(Ok(65536), str::parse)
.expect("Could not parse LIBAFL_EDGES_MAP_SIZE"); .expect("Could not parse LIBAFL_EDGES_MAP_SIZE");
Self { Self {
edges: (0..map_size).map(|_| None).collect(), edges: (0..map_size).map(|_| None).collect(),