about summary refs log tree commit diff
path: root/custom_mutators/libfuzzer/libfuzzer.cpp
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2021-07-20 08:57:37 +0200
committerGitHub <noreply@github.com>2021-07-20 08:57:37 +0200
commitfff8c49f7c73a1531166ad52fc50306dbd01775f (patch)
tree217b85dfd5b6ccf62a8fa4ac59a65d615a08143f /custom_mutators/libfuzzer/libfuzzer.cpp
parentb3fe3b8877931f7ba7c4150fcc24e8cd18835d86 (diff)
parent5bcbb2f59affc411a1e8bb7ccaabaa5ba63e6596 (diff)
downloadafl++-fff8c49f7c73a1531166ad52fc50306dbd01775f.tar.gz
Merge pull request #1034 from AFLplusplus/grammatron
Grammatron
Diffstat (limited to 'custom_mutators/libfuzzer/libfuzzer.cpp')
-rw-r--r--custom_mutators/libfuzzer/libfuzzer.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/custom_mutators/libfuzzer/libfuzzer.cpp b/custom_mutators/libfuzzer/libfuzzer.cpp
index dc1fbeb2..3c65ee1d 100644
--- a/custom_mutators/libfuzzer/libfuzzer.cpp
+++ b/custom_mutators/libfuzzer/libfuzzer.cpp
@@ -78,9 +78,9 @@ extern "C" my_mutator_t *afl_custom_init(afl_state_t *afl, unsigned int seed) {
 /* When a new queue entry is added we check if there are new dictionary
    entries to add to honggfuzz structure */
 #if 0
-extern "C" void afl_custom_queue_new_entry(my_mutator_t * data,
-                                           const uint8_t *filename_new_queue,
-                                           const uint8_t *filename_orig_queue) {
+extern "C" uint8_t afl_custom_queue_new_entry(my_mutator_t * data,
+                                              const uint8_t *filename_new_queue,
+                                              const uint8_t *filename_orig_queue) {
 
   while (data->extras_cnt < afl_struct->extras_cnt) {
 
@@ -110,6 +110,8 @@ extern "C" void afl_custom_queue_new_entry(my_mutator_t * data,
 
   }
 
+  return 0;
+
 }
 
 #endif