diff options
author | van Hauser <vh@thc.org> | 2021-03-06 18:47:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-06 18:47:58 +0100 |
commit | 976cb3e36c130dc31fb189e9bb4f036730fca7ee (patch) | |
tree | 94143e3775e23597abe00b1ad9373c6c90b62632 /src/afl-fuzz.c | |
parent | bd0a23de73011a390714b9f3836a46443054fdd5 (diff) | |
parent | 9b3d8c327d33191b181219ffce411b40bdbe8902 (diff) | |
download | afl++-976cb3e36c130dc31fb189e9bb4f036730fca7ee.tar.gz |
Merge pull request #778 from AFLplusplus/dev
This fixes 3 different crash issues
Diffstat (limited to 'src/afl-fuzz.c')
-rw-r--r-- | src/afl-fuzz.c | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/src/afl-fuzz.c b/src/afl-fuzz.c index a02eadb2..09aff4fb 100644 --- a/src/afl-fuzz.c +++ b/src/afl-fuzz.c @@ -1437,23 +1437,8 @@ int main(int argc, char **argv_orig, char **envp) { // read_foreign_testcases(afl, 1); for the moment dont do this OKF("Loaded a total of %u seeds.", afl->queued_paths); - load_auto(afl); - pivot_inputs(afl); - if (extras_dir_cnt) { - - for (i = 0; i < extras_dir_cnt; i++) { - - load_extras(afl, extras_dir[i]); - - } - - dedup_extras(afl); - OKF("Loaded a total of %u extras.", afl->extras_cnt); - - } - if (!afl->timeout_given) { find_timeout(afl); } // only for resumes! if ((afl->tmp_dir = afl->afl_env.afl_tmpdir) != NULL && @@ -1681,6 +1666,22 @@ int main(int argc, char **argv_orig, char **envp) { } + load_auto(afl); + + if (extras_dir_cnt) { + + for (i = 0; i < extras_dir_cnt; i++) { + + load_extras(afl, extras_dir[i]); + + } + + } + + deunicode_extras(afl); + dedup_extras(afl); + if (afl->extras_cnt) { OKF("Loaded a total of %u extras.", afl->extras_cnt); } + // after we have the correct bitmap size we can read the bitmap -B option // and set the virgin maps if (afl->in_bitmap) { |