diff options
author | vanhauser-thc <vh@thc.org> | 2022-02-05 08:27:17 +0100 |
---|---|---|
committer | vanhauser-thc <vh@thc.org> | 2022-02-05 08:27:17 +0100 |
commit | d5b9cd4b73253c2fbbc7da88015ae0eac303eb32 (patch) | |
tree | 987c3ab057607e26bba6fbd7309f894d6107b07d /src/afl-fuzz-init.c | |
parent | ce5032cc2949366260db12a7d52699b23ff9cda4 (diff) | |
download | afl++-d5b9cd4b73253c2fbbc7da88015ae0eac303eb32.tar.gz |
add afl-fuzz -y fuzz length support
Diffstat (limited to 'src/afl-fuzz-init.c')
-rw-r--r-- | src/afl-fuzz-init.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/afl-fuzz-init.c b/src/afl-fuzz-init.c index eb73b120..45f28d4b 100644 --- a/src/afl-fuzz-init.c +++ b/src/afl-fuzz-init.c @@ -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); |