revert large map (#2004)
This commit is contained in:
parent
1c85c3af13
commit
90c627a7e7
@ -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")]
|
||||||
|
@ -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();
|
||||||
|
|
||||||
|
@ -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();
|
||||||
|
|
||||||
|
@ -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(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user