about summary refs log tree commit diff
path: root/src/afl-fuzz-run.c
diff options
context:
space:
mode:
authorDominik Maier <domenukk@gmail.com>2020-03-28 11:55:10 +0100
committerDominik Maier <domenukk@gmail.com>2020-04-01 13:10:06 +0200
commitab5e0703dab404a77cd4726f720db99bed1a0c71 (patch)
treeaf02917d3857f49d804ecd5a1d29374ff62d4209 /src/afl-fuzz-run.c
parentf370ef38c47eb9243c5ca06b98948e33cf5347b3 (diff)
downloadafl++-ab5e0703dab404a77cd4726f720db99bed1a0c71.tar.gz
tiny changes in custom mut api
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 315539d1..90cb2ed5 100644
--- a/src/afl-fuzz-run.c
+++ b/src/afl-fuzz-run.c
@@ -221,7 +221,7 @@ void write_to_testcase(afl_state_t *afl, void *mem, u32 len) {
     size_t new_size = afl->mutator->afl_custom_pre_save(afl->mutator->data, mem,
                                                         len, &new_buf);
 
-    if (unlikely(new_size <= 0 || !new_buf))
+    if (unlikely(!new_buf))
       FATAL("Custom_pre_save failed (ret: %lu)", (long unsigned)new_size);
 
     /* everything as planned. use the new data. */