about summary refs log tree commit diff
path: root/include/config.h
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-10-12 03:18:54 +0200
committerGitHub <noreply@github.com>2020-10-12 03:18:54 +0200
commitc03fbcedaa68db5324423975a34331287426f7c2 (patch)
tree59506eb49144e61c4fcf8691cabb5b4c7ce68e96 /include/config.h
parentdab017dddaaab6d836a590f7bba3eea3549758d2 (diff)
parent43d8296504fc2dbb80ebbdf04072286805ae9bff (diff)
downloadafl++-c03fbcedaa68db5324423975a34331287426f7c2.tar.gz
Merge branch 'memcache_marc' 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 7dd045e3..3f498275 100644
--- a/include/config.h
+++ b/include/config.h
@@ -295,6 +295,15 @@
 
 #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 3072
+
+#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: */