diff options
author | van Hauser <vh@thc.org> | 2020-04-17 09:10:49 +0200 |
---|---|---|
committer | van Hauser <vh@thc.org> | 2020-04-17 09:10:49 +0200 |
commit | 5b70d23211ddeddfb4d1dfce29a50234d08e9502 (patch) | |
tree | 491a5795640824ba427d41e807daa72b0f19e567 /src/afl-fuzz-init.c | |
parent | 16ce55584512274804eadd71b4790be3d1bfbf97 (diff) | |
download | afl++-5b70d23211ddeddfb4d1dfce29a50234d08e9502.tar.gz |
added AFL_MAP_SIZE (wip)
Diffstat (limited to 'src/afl-fuzz-init.c')
-rw-r--r-- | src/afl-fuzz-init.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/afl-fuzz-init.c b/src/afl-fuzz-init.c index 7131ceed..3da348d2 100644 --- a/src/afl-fuzz-init.c +++ b/src/afl-fuzz-init.c @@ -442,23 +442,6 @@ void read_testcases(afl_state_t *afl) { } -/* Examine map coverage. Called once, for first test case. */ - -static void check_map_coverage(afl_state_t *afl) { - - u32 i; - - if (count_bytes(afl, afl->fsrv.trace_bits) < 100) return; - - for (i = (1 << (MAP_SIZE_POW2 - 1)); i < MAP_SIZE; ++i) - if (afl->fsrv.trace_bits[i]) return; - - if (afl->fsrv.map_size != MAP_SIZE) return; - - WARNF("Recompile binary with newer version of afl to improve coverage!"); - -} - /* Perform dry run of all test cases to confirm that the app is working as expected. This is done only for the initial inputs, and only once. */ @@ -501,8 +484,6 @@ void perform_dry_run(afl_state_t *afl) { case FSRV_RUN_OK: - if (q == afl->queue) check_map_coverage(afl); - if (afl->crash_mode) FATAL("Test case '%s' does *NOT* crash", fn); break; |