about summary refs log tree commit diff
path: root/include/config.h
diff options
context:
space:
mode:
authorDominik Maier <domenukk@gmail.com>2020-10-06 15:37:59 +0200
committerDominik Maier <domenukk@gmail.com>2020-10-06 15:37:59 +0200
commita4b60ca5b61c9bca5fa7b67528baeb3a8ea9320e (patch)
treeabfcb2636400ec2b50a05e87b0ad955bd6452267 /include/config.h
parentfd4efd04a1d55b070934e5307b8dd8f81aa8e8ac (diff)
downloadafl++-a4b60ca5b61c9bca5fa7b67528baeb3a8ea9320e.tar.gz
testcase cache added
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 7c8e0c7d..38a734ce 100644
--- a/include/config.h
+++ b/include/config.h
@@ -295,6 +295,14 @@
 
 #define RESEED_RNG 100000
 
+/* The amount of entries in the testcase cache, held in memory.
+Decrease if RAM usage is high. */
+#define TESTCASE_CACHE_SIZE 2048
+
+#if TESTCASE_CACHE_SIZE < 4
+  #error "Dangerously low cache size: Set TESTCASE_CACHE_SIZE to 4 or more in config.h!
+#endif
+
 /* Maximum line length passed from GCC to 'as' and used for parsing
    configuration files: */