Allow the fuzzer to write empty buffer (i.e., len == 0) to the file
MODIFY
src/afl-fuzz-run.c
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);

Allow the fuzzer to write empty buffer (i.e., len == 0) to the file