mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-07 15:51:32 +00:00
only reverse reading the queue on restart
This commit is contained in:
parent
7b33148b75
commit
c0ecf7cf61
@ -7,6 +7,10 @@
|
|||||||
- afl-fuzz:
|
- afl-fuzz:
|
||||||
- new env `AFL_POST_PROCESS_KEEP_ORIGINAL` to keep the orignal
|
- new env `AFL_POST_PROCESS_KEEP_ORIGINAL` to keep the orignal
|
||||||
data before post process on finds
|
data before post process on finds
|
||||||
|
- reverse reading the seeds only on restarts
|
||||||
|
- afl-cc:
|
||||||
|
- new env `AFL_LLVM_LTO_SKIPINIT` to support the AFL++ based WASM
|
||||||
|
(https://github.com/fgsect/WAFL) project
|
||||||
- afl-showmap:
|
- afl-showmap:
|
||||||
- added custom mutator post_process and send support
|
- added custom mutator post_process and send support
|
||||||
- add `-I filelist` option, an alternative to `-i in_dir`
|
- add `-I filelist` option, an alternative to `-i in_dir`
|
||||||
|
@ -718,10 +718,21 @@ void read_testcases(afl_state_t *afl, u8 *directory) {
|
|||||||
|
|
||||||
if (nl_cnt) {
|
if (nl_cnt) {
|
||||||
|
|
||||||
i = nl_cnt;
|
u32 done = 0;
|
||||||
|
|
||||||
|
if (unlikely(afl->in_place_resume)) {
|
||||||
|
|
||||||
|
i = nl_cnt;
|
||||||
|
|
||||||
|
} else {
|
||||||
|
|
||||||
|
i = 0;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
do {
|
do {
|
||||||
|
|
||||||
--i;
|
if (unlikely(afl->in_place_resume)) { --i; }
|
||||||
|
|
||||||
struct stat st;
|
struct stat st;
|
||||||
u8 dfn[PATH_MAX];
|
u8 dfn[PATH_MAX];
|
||||||
@ -801,18 +812,17 @@ void read_testcases(afl_state_t *afl, u8 *directory) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
if (unlikely(afl->in_place_resume)) {
|
||||||
if (unlikely(afl->schedule >= FAST && afl->schedule <= RARE)) {
|
|
||||||
|
|
||||||
u64 cksum = hash64(afl->fsrv.trace_bits, afl->fsrv.map_size,
|
if (unlikely(i == 0)) { done = 1; }
|
||||||
HASH_CONST); afl->queue_top->n_fuzz_entry = cksum % N_FUZZ_SIZE;
|
|
||||||
afl->n_fuzz[afl->queue_top->n_fuzz_entry] = 1;
|
|
||||||
|
|
||||||
}
|
} else {
|
||||||
|
|
||||||
*/
|
if (unlikely(++i == (u32)nl_cnt)) { done = 1; }
|
||||||
|
|
||||||
} while (i > 0);
|
}
|
||||||
|
|
||||||
|
} while (!done);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user