shmem map size in config.h

This commit is contained in:
vanhauser-thc
2021-03-17 10:26:02 +01:00
parent a7797f0cb9
commit 5e2a5f1110
5 changed files with 60 additions and 43 deletions

View File

@ -1072,7 +1072,7 @@ u8 *u_stringify_time_diff(u8 *buf, u64 cur_ms, u64 event_ms) {
/* Reads the map size from ENV */
u32 get_map_size(void) {
uint32_t map_size = 8000000; // a very large default map
uint32_t map_size = DEFAULT_SHMEM_SIZE;
char * ptr;
if ((ptr = getenv("AFL_MAP_SIZE")) || (ptr = getenv("AFL_MAPSIZE"))) {