add afl-fuzz -y fuzz length support

This commit is contained in:
vanhauser-thc
2022-02-05 08:27:17 +01:00
parent ce5032cc29
commit d5b9cd4b73
9 changed files with 85 additions and 17 deletions

View File

@ -617,11 +617,10 @@ void read_foreign_testcases(afl_state_t *afl, int first) {
}
write_to_testcase(afl, mem, st.st_size);
u32 len = write_to_testcase(afl, mem, st.st_size, 1);
fault = fuzz_run_target(afl, &afl->fsrv, afl->fsrv.exec_tmout);
afl->syncing_party = foreign_name;
afl->queued_imported +=
save_if_interesting(afl, mem, st.st_size, fault);
afl->queued_imported += save_if_interesting(afl, mem, len, fault);
afl->syncing_party = 0;
munmap(mem, st.st_size);
close(fd);