diff options
author | Yiyi Wang <91304853+ahuo1@users.noreply.github.com> | 2024-04-25 21:28:58 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-25 21:28:58 +0800 |
commit | 526dbe8f167f2ee9b11121c8b2b413b7b59fa1ff (patch) | |
tree | 55df37de7dfc163e9902f1ac0cf668683b66e190 | |
parent | 951a0e52254d873dd0f1a3a80d9acda44563edd5 (diff) | |
download | afl++-526dbe8f167f2ee9b11121c8b2b413b7b59fa1ff.tar.gz |
fix: initialize n_fuzz_entry in perform_dry_run.
-rw-r--r-- | src/afl-fuzz-init.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/afl-fuzz-init.c b/src/afl-fuzz-init.c index 2a8267cc..503f1ca8 100644 --- a/src/afl-fuzz-init.c +++ b/src/afl-fuzz-init.c @@ -914,6 +914,11 @@ void perform_dry_run(afl_state_t *afl) { res = calibrate_case(afl, q, use_mem, 0, 1); + /* For AFLFast schedules we update the queue entry */ + if (likely(q->exec_cksum)) { + q->n_fuzz_entry = q->exec_cksum % N_FUZZ_SIZE; + } + if (afl->stop_soon) { return; } if (res == afl->crash_mode || res == FSRV_RUN_NOBITS) { |