diff options
author | Max Dymond <cmeister2@gmail.com> | 2017-09-01 21:48:41 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2017-09-02 11:07:55 +0200 |
commit | 57001ce3bb97455d799f0a2180b7bf1287ffd71a (patch) | |
tree | 70673d337088c000590eb7645b4702cf7adea7e1 /tests/fuzz/curl_fuzzer.h | |
parent | c290b8fb23f6b6fd8e06e22755d23a5e8e3623aa (diff) |
ossfuzz: Move to C++ for curl_fuzzer.
Automake gets confused if you want to use C++ static libraries with C
code - basically we need to involve the clang++ linker. The easiest way
of achieving this is to rename the C code as C++ code. This gets us a
bit further along the path and ought to be compatible with Google's
version of clang.
Diffstat (limited to 'tests/fuzz/curl_fuzzer.h')
-rw-r--r-- | tests/fuzz/curl_fuzzer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/fuzz/curl_fuzzer.h b/tests/fuzz/curl_fuzzer.h index a0c9d596a..634160648 100644 --- a/tests/fuzz/curl_fuzzer.h +++ b/tests/fuzz/curl_fuzzer.h @@ -21,6 +21,7 @@ ***************************************************************************/ #include <curl/curl.h> +#include <testinput.h> /** * TLV types. @@ -107,7 +108,6 @@ typedef struct fuzz_data } FUZZ_DATA; /* Function prototypes */ -int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size); uint32_t to_u32(uint8_t b[4]); uint16_t to_u16(uint8_t b[2]); int fuzz_initialize_fuzz_data(FUZZ_DATA *fuzz, |