Edit fuzz' .c files to be C, not C++

This commit is contained in:
Nigel Tao committed 2018-05-03 08:15:29 +10:00
1 parent 5ad9055572
commit 2a97a1ad29
4 files changed
+16 -8

No files matched your search

+2 -2
View File
@@ -23,7 +23,7 @@ such as https://github.com/google/oss-fuzz calling LLVMFuzzerTestOneInput.
When working on the fuzz implementation, or as a sanity check, defining
WUFFS_CONFIG__FUZZLIB_MAIN will let you manually run fuzz over a set of files:
g++ -DWUFFS_CONFIG__FUZZLIB_MAIN gif_fuzzer.cc
gcc -DWUFFS_CONFIG__FUZZLIB_MAIN gif_fuzzer.c
./a.out ../../../test/data/*.gif
rm -f ./a.out
@@ -36,7 +36,7 @@ It should print "PASS", amongst other information, and exit(0).
// relative includes, you can use the script/inline-c-relative-includes.go
// program to generate a stand-alone C file.
#include "../../../gen/c/std/gif.c"
#include "../fuzzlib/fuzzlib.cc"
#include "../fuzzlib/fuzzlib.c"
void fuzz(wuffs_base__io_reader src_reader, uint32_t hash) {
void* pixbuf = NULL;