diff options
author | h1994st <h1994st@gmail.com> | 2020-07-18 02:16:04 -0400 |
---|---|---|
committer | h1994st <h1994st@gmail.com> | 2020-07-18 02:16:04 -0400 |
commit | 5e10f660e80abab73b334322bdea29a28d43bf53 (patch) | |
tree | 3af899b9dd26beeea6a86d274216b30c9194893f /src | |
parent | 0da0b5cba05d1b49b7ca10987d11a74ab54892e0 (diff) | |
download | afl++-5e10f660e80abab73b334322bdea29a28d43bf53.tar.gz |
Allow the fuzzer to write empty buffer (i.e., len == 0) to the file
Diffstat (limited to 'src')
-rw-r--r-- | src/afl-fuzz-run.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/afl-fuzz-run.c b/src/afl-fuzz-run.c index 2a1664e2..f1da9c65 100644 --- a/src/afl-fuzz-run.c +++ b/src/afl-fuzz-run.c @@ -109,7 +109,7 @@ void write_to_testcase(afl_state_t *afl, void *mem, u32 len) { }); - if (unlikely(!new_buf && (new_size <= 0))) { + if (unlikely(!new_buf && (new_size < 0))) { FATAL("Custom_post_process failed (ret: %lu)", (long unsigned)new_size); |