about summary refs log tree commit diff
path: root/include/config.h
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2021-03-17 10:26:02 +0100
committervanhauser-thc <vh@thc.org>2021-03-17 10:27:23 +0100
commit5e2a5f1110e29c36f1c41fb4677ab698c5d571c0 (patch)
treebc52c89610ae1679d634464e9d45a7f4a35627c4 /include/config.h
parenta7797f0cb98fa372c0838053ae9e6fb7ff98b7d4 (diff)
downloadafl++-5e2a5f1110e29c36f1c41fb4677ab698c5d571c0.tar.gz
shmem map size in config.h
Diffstat (limited to 'include/config.h')
-rw-r--r--include/config.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h
index b049fee0..29225f6b 100644
--- a/include/config.h
+++ b/include/config.h
@@ -34,6 +34,15 @@
  *                                                    *
  ******************************************************/
 
+/* Default shared memory map size. Most targets just need a coverage map
+   between 20-250kb. Plus there is an auto-detection feature in afl-fuzz.
+   However if a target has problematic constructors and init arrays then
+   this can fail. Hence afl-fuzz deploys a larger default map. The largest
+   map seen so far is the xlsx fuzzer for libreoffice which is 5MB.
+   At runtime this value can be overriden via AFL_MAP_SIZE.
+   Default: 8MB (defined in bytes) */
+#define DEFAULT_SHMEM_SIZE (8 * 1024 * 1024)
+
 /* CMPLOG/REDQUEEN TUNING
  *
  * Here you can modify tuning and solving options for CMPLOG.