add schedule check.

This commit is contained in:
Yiyi Wang
2024-04-26 07:45:58 +08:00
committed by GitHub
parent 526dbe8f16
commit 43e9a13921

View File

@ -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;
}