about summary refs log tree commit diff
path: root/include/config.h
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2021-03-19 23:54:36 +0100
committerGitHub <noreply@github.com>2021-03-19 23:54:36 +0100
commit090128b3f8b8bc80cf47ae1481b01c0509dc6357 (patch)
tree03c3314427f02533a8db3e06587ce3afe74a5f23 /include/config.h
parentd7e121e2c99c02d4b6984f21ba837d44bce9c77c (diff)
parent749b03d812b76746b4a673f34a13fb0b067fd61d (diff)
downloadafl++-090128b3f8b8bc80cf47ae1481b01c0509dc6357.tar.gz
Merge branch 'dev' into dev
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.