diff options
author | vanhauser-thc <vh@thc.org> | 2023-07-13 14:26:26 +0200 |
---|---|---|
committer | vanhauser-thc <vh@thc.org> | 2023-07-13 14:26:32 +0200 |
commit | 127c345161769c513275fed9d64de12536ee979d (patch) | |
tree | a1ac870f1df18e186d8665b2688752114898d8ab /include/config.h | |
parent | 1132b08d7d3ef6bae712ced57d32ce06abfa973d (diff) | |
download | afl++-127c345161769c513275fed9d64de12536ee979d.tar.gz |
nts
Diffstat (limited to 'include/config.h')
-rw-r--r-- | include/config.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h index 8585041e..16f4b613 100644 --- a/include/config.h +++ b/include/config.h @@ -446,7 +446,15 @@ after changing this - otherwise, SEGVs may ensue. */ #define MAP_SIZE_POW2 16 + +/* Do not change this unless you really know what you are doing. */ + #define MAP_SIZE (1U << MAP_SIZE_POW2) +#if MAP_SIZE <= 65536 + #define MAP_INITIAL_SIZE (2 << 20) // = 2097152 +#else + #define MAP_INITIAL_SIZE MAP_SIZE +#endif /* Maximum allocator request size (keep well under INT_MAX): */ |