]> git.proxmox.com Git - libtpms.git/commit - README
fuzz: better oss-fuzz integration
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Mon, 1 Apr 2019 12:54:46 +0000 (14:54 +0200)
committerStefan Berger <stefanb@us.ibm.com>
Mon, 1 Apr 2019 15:22:03 +0000 (11:22 -0400)
commitb214dabfc817462fa4401f7b5806125a30b5256e
treebfbd676d8cac633f12aacff266c27a24056e6f8c
parent3e591832c46dbee63f256245eb9bea4fcc126ea4
fuzz: better oss-fuzz integration

There were a few issues with the oss-fuzz integration from commit
8373f098542ecba3e0c58537f03760ea30c64ac2 ("build-sys: add oss-fuzz
support").

When building on OSS-Fuzz, the projects should use the provided CFLAGS
and CXXFLAGS and don't append any extra sanitization / fuzzing flags.

$LIB_FUZZING_ENGINE is defined to set the library to link to, and it
is a c++ library, so we should build fuzzer with c++...

Now --enable-fuzzer is only used for -fsanitize=fuzzer.

Add a tests/fuzz-main.c as fallback, to run the corpus on other builds.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
README
configure.ac
tests/Makefile.am
tests/fuzz-main.c [new file with mode: 0644]
tests/fuzz.c [deleted file]
tests/fuzz.cc [new file with mode: 0644]
tests/fuzz.sh [new file with mode: 0755]
tests/oss-fuzz.sh