about summary refs log tree commit diff
path: root/include/config.h
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2023-07-13 14:26:26 +0200
committervanhauser-thc <vh@thc.org>2023-07-13 14:26:32 +0200
commit127c345161769c513275fed9d64de12536ee979d (patch)
treea1ac870f1df18e186d8665b2688752114898d8ab /include/config.h
parent1132b08d7d3ef6bae712ced57d32ce06abfa973d (diff)
downloadafl++-127c345161769c513275fed9d64de12536ee979d.tar.gz
nts
Diffstat (limited to 'include/config.h')
-rw-r--r--include/config.h8
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): */