about summary refs log tree commit diff
path: root/custom_mutators/honggfuzz
diff options
context:
space:
mode:
authorAndrea Fioraldi <andreafioraldi@gmail.com>2021-02-19 16:07:47 +0100
committerAndrea Fioraldi <andreafioraldi@gmail.com>2021-02-19 16:07:47 +0100
commit4290cb587763b334c7fb1213bc50dada8d62765d (patch)
treeacdf43eb5631a53c81ae3b2691c4177dd4e1ef55 /custom_mutators/honggfuzz
parent801f2449ecb6f0e0a4bd950a7309aebad4dbff1d (diff)
downloadafl++-4290cb587763b334c7fb1213bc50dada8d62765d.tar.gz
fix hongg mutator API change
Diffstat (limited to 'custom_mutators/honggfuzz')
-rw-r--r--custom_mutators/honggfuzz/input.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/custom_mutators/honggfuzz/input.h b/custom_mutators/honggfuzz/input.h
index 7b0c55ae..09712f54 100644
--- a/custom_mutators/honggfuzz/input.h
+++ b/custom_mutators/honggfuzz/input.h
@@ -77,11 +77,11 @@ static inline uint64_t util_rndGet(uint64_t min, uint64_t max) {
 }
 static inline uint64_t util_rnd64() { return rand_below(afl_struct, 1 << 30); }
 
-static inline size_t input_getRandomInputAsBuf(run_t *run, const uint8_t **buf) {
-  *buf = queue_input;
+static inline const uint8_t* input_getRandomInputAsBuf(run_t* run, size_t* len) {
+  *len = queue_input_size;
   run->dynfile->data = queue_input;
   run->dynfile->size = queue_input_size;
-  return queue_input_size;
+  return queue_input;
 }
 static inline void input_setSize(run_t* run, size_t sz) {
   run->dynfile->size = sz;