about summary refs log tree commit diff
path: root/src/afl-fuzz-mutators.c
diff options
context:
space:
mode:
authorDominik Maier <domenukk@gmail.com>2020-03-24 22:40:14 +0100
committerDominik Maier <domenukk@gmail.com>2020-03-24 22:40:14 +0100
commit9c4d32b5b8d20b86afb2c59045baa63dd5a23031 (patch)
tree0cd75c53d07e40163c78276494338a8d2172b6f8 /src/afl-fuzz-mutators.c
parent2e060f856d4ba795aebe97e7ad67f8a058c7d4a6 (diff)
downloadafl++-9c4d32b5b8d20b86afb2c59045baa63dd5a23031.tar.gz
fixed call of custom mutators
Diffstat (limited to 'src/afl-fuzz-mutators.c')
-rw-r--r--src/afl-fuzz-mutators.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/afl-fuzz-mutators.c b/src/afl-fuzz-mutators.c
index 0ded4ba1..3e6ad466 100644
--- a/src/afl-fuzz-mutators.c
+++ b/src/afl-fuzz-mutators.c
@@ -213,7 +213,7 @@ u8 trim_case_custom(afl_state_t *afl, struct queue_entry *q, u8 *in_buf) {
     u8 *   retbuf = NULL;
     size_t retlen = 0;
 
-    afl->mutator->afl_custom_trim(afl, &retbuf, &retlen);
+    afl->mutator->afl_custom_trim(afl->mutator->data, &retbuf, &retlen);
 
     if (retlen > orig_len)
       FATAL(
@@ -250,7 +250,7 @@ u8 trim_case_custom(afl_state_t *afl, struct queue_entry *q, u8 *in_buf) {
       }
 
       /* Tell the custom mutator that the trimming was successful */
-      afl->stage_cur = afl->mutator->afl_custom_post_trim(afl, 1);
+      afl->stage_cur = afl->mutator->afl_custom_post_trim(afl->mutator->data, 1);
 
       if (afl->not_on_tty && afl->debug)
         SAYF("[Custom Trimming] SUCCESS: %d/%d iterations (now at %u bytes)",
@@ -259,7 +259,7 @@ u8 trim_case_custom(afl_state_t *afl, struct queue_entry *q, u8 *in_buf) {
     } else {
 
       /* Tell the custom mutator that the trimming was unsuccessful */
-      afl->stage_cur = afl->mutator->afl_custom_post_trim(afl, 0);
+      afl->stage_cur = afl->mutator->afl_custom_post_trim(afl->mutator->data, 0);
       if (afl->not_on_tty && afl->debug)
         SAYF("[Custom Trimming] FAILURE: %d/%d iterations", afl->stage_cur,
              afl->stage_max);