about summary refs log tree commit diff
path: root/docs/custom_mutators.md
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2022-07-19 12:24:03 +0200
committervanhauser-thc <vh@thc.org>2022-07-19 12:24:03 +0200
commitca4a8c0f920f83c86aeb599b94b50fce2af68389 (patch)
tree0c59bc591d0c8991775c0db8655e4b9c5321b666 /docs/custom_mutators.md
parentb847e0f414e7b310e1a68bc501d4e2453bfce70e (diff)
downloadafl++-ca4a8c0f920f83c86aeb599b94b50fce2af68389.tar.gz
post_process 0/NULL return support
Diffstat (limited to 'docs/custom_mutators.md')
-rw-r--r--docs/custom_mutators.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/custom_mutators.md b/docs/custom_mutators.md
index 7b4e0516..d84e4e02 100644
--- a/docs/custom_mutators.md
+++ b/docs/custom_mutators.md
@@ -159,6 +159,10 @@ def deinit():  # optional for Python
     This can return any python object that implements the buffer protocol and
     supports PyBUF_SIMPLE. These include bytes, bytearray, etc.
 
+    You can decide in the post_process mutator to not send the mutated data
+    to the target, e.g. if it is too short, too corrupted, etc. If so,
+    return a NULL buffer and zero length (or a 0 length string in Python).
+
 - `queue_new_entry` (optional):
 
     This methods is called after adding a new test case to the queue. If the