summaryrefslogtreecommitdiff
path: root/fuzz/fuzzer.h
diff options
context:
space:
mode:
authorKurt Roeckx <kurt@roeckx.be>2016-05-07 22:09:13 +0200
committerKurt Roeckx <kurt@roeckx.be>2016-06-04 14:39:24 +0200
commitf59d0131cb6fc224aee0a0a92de1f04cdebe97c8 (patch)
tree58b37d06e30988507c0b9eb59bc66ff8747a58af /fuzz/fuzzer.h
parent255cf605d67e72b73e6130d4c7bbe68c0eb22d8e (diff)
downloadopenssl-new-f59d0131cb6fc224aee0a0a92de1f04cdebe97c8.tar.gz
Add support for fuzzing with AFL
Reviewed-by: Ben Laurie <ben@links.org> MR: #2740
Diffstat (limited to 'fuzz/fuzzer.h')
-rw-r--r--fuzz/fuzzer.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/fuzz/fuzzer.h b/fuzz/fuzzer.h
index b3c3428c9b..289aee2f60 100644
--- a/fuzz/fuzzer.h
+++ b/fuzz/fuzzer.h
@@ -8,5 +8,5 @@
* or in the file LICENSE in the source distribution.
*/
-int LLVMFuzzerTestOneInput(const uint8_t *buf, size_t len);
-int LLVMFuzzerInitialize(int *argc, char ***argv);
+int FuzzerTestOneInput(const uint8_t *buf, size_t len);
+__attribute__((weak)) int FuzzerInitialize(int *argc, char ***argv);