diff fuzz/fuzz-harness.c @ 1760:2406a9987810

Add first try at fuzzing custom mutator
author Matt Johnston <matt@ucc.asn.au>
date Sun, 25 Oct 2020 22:52:36 +0800
parents d5680e12ac33
children 8179eabe16c9
line wrap: on
line diff
--- a/fuzz/fuzz-harness.c	Sun Oct 25 21:47:42 2020 +0800
+++ b/fuzz/fuzz-harness.c	Sun Oct 25 22:52:36 2020 +0800
@@ -46,3 +46,9 @@
 
     return 0;
 }
+
+size_t LLVMFuzzerMutate(uint8_t *Data, size_t Size, size_t MaxSize) {
+    printf("standalone fuzzer harness shouldn't call LLVMFuzzerMutate");
+    abort();
+    return 0;
+}