commit | 5e10f660e80abab73b334322bdea29a28d43bf53 | [log] [tgz] |
---|---|---|
author | h1994st <h1994st@gmail.com> | Sat Jul 18 02:16:04 2020 -0400 |
committer | h1994st <h1994st@gmail.com> | Sat Jul 18 02:16:04 2020 -0400 |
tree | 3af899b9dd26beeea6a86d274216b30c9194893f | |
parent | 0da0b5cba05d1b49b7ca10987d11a74ab54892e0 [diff] |
Allow the fuzzer to write empty buffer (i.e., len == 0) to the file
diff --git a/src/afl-fuzz-run.c b/src/afl-fuzz-run.c index 2a1664e..f1da9c6 100644 --- a/src/afl-fuzz-run.c +++ b/src/afl-fuzz-run.c
@@ -109,7 +109,7 @@ }); - 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);