about summary refs log tree commit diff
path: root/src/afl-fuzz-run.c
diff options
context:
space:
mode:
authorh1994st <h1994st@gmail.com>2020-07-18 23:20:32 -0400
committerh1994st <h1994st@gmail.com>2020-07-18 23:20:32 -0400
commit67d2e6319bed90c06cf54b5d9a7a4bae51df317d (patch)
treeb1bd0ac9d8c510a010fadb5788f8170899ed8f5f /src/afl-fuzz-run.c
parent5e10f660e80abab73b334322bdea29a28d43bf53 (diff)
downloadafl++-67d2e6319bed90c06cf54b5d9a7a4bae51df317d.tar.gz
Skip the empty test case generated by the custom trimming
Diffstat (limited to 'src/afl-fuzz-run.c')
-rw-r--r--src/afl-fuzz-run.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/afl-fuzz-run.c b/src/afl-fuzz-run.c
index f1da9c65..2a1664e2 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);