about summary refs log tree commit diff
path: root/src/afl-fuzz-run.c
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2024-06-27 18:51:54 +0200
committervanhauser-thc <vh@thc.org>2024-06-27 18:51:58 +0200
commitba7313b521df7a347cd9f96a694cd8caa63b9b41 (patch)
treebb873333e4a75b3dc667809d4ae6b2709777d3be /src/afl-fuzz-run.c
parente2d30641bebfada56f1fdd8cbf16c23a97f96c40 (diff)
downloadafl++-ba7313b521df7a347cd9f96a694cd8caa63b9b41.tar.gz
AFL_CUSTOM_MUTATOR_LATE_SEND added
Diffstat (limited to 'src/afl-fuzz-run.c')
-rw-r--r--src/afl-fuzz-run.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/afl-fuzz-run.c b/src/afl-fuzz-run.c
index c234fc42..2f244a1d 100644
--- a/src/afl-fuzz-run.c
+++ b/src/afl-fuzz-run.c
@@ -194,7 +194,17 @@ write_to_testcase(afl_state_t *afl, void **mem, u32 len, u32 fix) {
 
       if (el->afl_custom_fuzz_send) {
 
-        el->afl_custom_fuzz_send(el->data, *mem, new_size);
+        if (!afl->afl_env.afl_custom_mutator_late_send) {
+
+          el->afl_custom_fuzz_send(el->data, *mem, new_size);
+
+        } else {
+
+          afl->fsrv.custom_input = *mem;
+          afl->fsrv.custom_input_len = new_size;
+
+        }
+
         sent = 1;
 
       }