about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/afl-fuzz-one.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/afl-fuzz-one.c b/src/afl-fuzz-one.c
index c61c9084..2e49e19b 100644
--- a/src/afl-fuzz-one.c
+++ b/src/afl-fuzz-one.c
@@ -1647,10 +1647,8 @@ custom_mutator_stage:
 
     }
 
-    /* `afl->out_buf` is actually not changed in the loop. Since `ck_maybe_grow`
-       is cheap, we still keep the following line but remove `memcpy`. */
-    out_buf = ck_maybe_grow(BUF_PARAMS(out), len);
-    // memcpy(out_buf, in_buf, len);
+    /* `(afl->)out_buf` may have been changed by the call to custom_fuzz */
+    memcpy(out_buf, in_buf, len);
 
   }