small improvements to Marcel's patch, fix laf-intel + redqueen crashes

This commit is contained in:
van Hauser
2020-09-29 15:02:57 +02:00
parent fe08482c1b
commit 383cd487a2
12 changed files with 104 additions and 74 deletions

View File

@ -732,8 +732,8 @@ void read_testcases(afl_state_t *afl, u8 *directory) {
if (unlikely(afl->schedule >= FAST && afl->schedule <= RARE)) {
u64 cksum = hash64(afl->fsrv.trace_bits, afl->fsrv.map_size, HASH_CONST);
afl->n_fuzz[cksum % n_fuzz_size] = 1;
afl->queue_top->n_fuzz_entry = cksum % N_FUZZ_SIZE;
afl->n_fuzz[afl->queue_top->n_fuzz_entry] = 1;
}