diff options
author | van Hauser <vh@thc.org> | 2020-10-14 15:30:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-14 15:30:30 +0200 |
commit | 56ac3fcdc511d124ad058412021ead21bbbcf4bf (patch) | |
tree | da375c21b2d150a266233d56e1209b9892a19430 /include/config.h | |
parent | c20ba2c2c5694c3a7ab0deac977e53fb576f8b37 (diff) | |
download | afl++-56ac3fcdc511d124ad058412021ead21bbbcf4bf.tar.gz |
configurable testcache with malloc (#581)
* cache item number to cache memory size * reload testcase if trimming changed the size * fix splicing selection * slim splicing * import sync fix * write testcache stats to fuzzer_stats * fix new seed selection algo * malloc+read instead of mmap * fix * testcache is configurable now and no reference counts * fixes compilation, test script * fixes * switch TEST_CC to afl-cc in makefile * code format * fix * fix crash * fix crash * fix env help output * remove unnecessary pointer resets * fix endless loop bug * actually use the cache if set * one more fix * increase default cache entries, add default cache size value to config.h Co-authored-by: hexcoder- <heiko@hexco.de>
Diffstat (limited to 'include/config.h')
-rw-r--r-- | include/config.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h index 7dd045e3..b4f3a775 100644 --- a/include/config.h +++ b/include/config.h @@ -295,6 +295,15 @@ #define RESEED_RNG 100000 +/* The maximum number of testcases to cache */ + +#define TESTCASE_ENTRIES 16384 + +/* The default maximum testcase cache size in MB, 0 = disable. + A value between 50 and 250 is a good default value. */ + +#define TESTCASE_CACHE 0 + /* Maximum line length passed from GCC to 'as' and used for parsing configuration files: */ |