about summary refs log tree commit diff
path: root/docs/custom_mutators.md
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2021-07-09 12:42:17 +0200
committervanhauser-thc <vh@thc.org>2021-07-09 12:42:17 +0200
commit5bcbb2f59affc411a1e8bb7ccaabaa5ba63e6596 (patch)
tree047459594d812e75405b1b92e9c8ddb962feb3ec /docs/custom_mutators.md
parent1b2637545b6b9f171ea46ed6cf5164e8d05d1776 (diff)
downloadafl++-5bcbb2f59affc411a1e8bb7ccaabaa5ba63e6596.tar.gz
port custom mutator changes
Diffstat (limited to 'docs/custom_mutators.md')
-rw-r--r--docs/custom_mutators.md5
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/custom_mutators.md b/docs/custom_mutators.md
index 129d6676..110c4758 100644
--- a/docs/custom_mutators.md
+++ b/docs/custom_mutators.md
@@ -47,7 +47,7 @@ int afl_custom_post_trim(void *data, unsigned char success);
 size_t afl_custom_havoc_mutation(void *data, unsigned char *buf, size_t buf_size, unsigned char **out_buf, size_t max_size);
 unsigned char afl_custom_havoc_mutation_probability(void *data);
 unsigned char afl_custom_queue_get(void *data, const unsigned char *filename);
-void afl_custom_queue_new_entry(void *data, const unsigned char *filename_new_queue, const unsigned int *filename_orig_queue);
+u8 afl_custom_queue_new_entry(void *data, const unsigned char *filename_new_queue, const unsigned int *filename_orig_queue);
 const char* afl_custom_introspection(my_mutator_t *data);
 void afl_custom_deinit(void *data);
 ```
@@ -88,7 +88,7 @@ def queue_get(filename):
     return True
 
 def queue_new_entry(filename_new_queue, filename_orig_queue):
-    pass
+    return False
 
 def introspection():
     return string
@@ -156,6 +156,7 @@ def deinit():  # optional for Python
 - `queue_new_entry` (optional):
 
     This methods is called after adding a new test case to the queue.
+    If the contents of the file was changed return True, False otherwise.
 
 - `introspection` (optional):