diff options
author | Yiyi Wang <91304853+ahuo1@users.noreply.github.com> | 2024-04-26 07:45:58 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-26 07:45:58 +0800 |
commit | 43e9a139214d57888c8f234ee44044de5108f8ea (patch) | |
tree | c8348cc1bd876004fc3191458e14a73f1e9f900a | |
parent | 526dbe8f167f2ee9b11121c8b2b413b7b59fa1ff (diff) | |
download | afl++-43e9a139214d57888c8f234ee44044de5108f8ea.tar.gz |
add schedule check.
-rw-r--r-- | src/afl-fuzz-init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/afl-fuzz-init.c b/src/afl-fuzz-init.c index 503f1ca8..b844123d 100644 --- a/src/afl-fuzz-init.c +++ b/src/afl-fuzz-init.c @@ -915,7 +915,7 @@ 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)) { + if (unlikely(afl->schedule >= FAST && afl->schedule <= RARE) && likely(q->exec_cksum)) { q->n_fuzz_entry = q->exec_cksum % N_FUZZ_SIZE; } |