Update Fuzzer configuration to be compatible with OSS-Fuzz
Description
Take the existing work around fuzzers in tests/fuzzing
and change it/extend it to be compliant with the OSS-Fuzz project.
Fixes
- The compilation flags
$CC
,$CFLAGS
, and$CXX
(the linker is$CXX
) are given. It is not the job of theCMakeLists.txt
to define them when fuzzing. But it must define new targets, the fuzzer executables. - Document how to use OSS-Fuzz docker images.
- Test our current fuzzers (see also https://gitlab.com/systerel/S2OPC-fuzzing-data for the corpora) and fix them if needed.
- Make the fuzzers complex enough to pass the OSS-Fuzz tests (https://github.com/google/oss-fuzz/pull/2348)
Edited by Pierre-Antoine BRAMERET