mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-14 19:08:08 +00:00
add afl-fuzz -y fuzz length support
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user