Merge pull request #11887 from evverx/fuzzbuzz

tests: hook up fuzz targets to FuzzBuzz
This commit is contained in:
Lennart Poettering
2019-05-08 12:40:03 +02:00
committed by GitHub
8 changed files with 114 additions and 33 deletions
+3
View File
@@ -6,3 +6,6 @@
/* The entry point into the fuzzer */
int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size);
/* https://docs.fuzzbuzz.io/developer-documentation/porting-targets-to-fuzzbuzz/libfuzzer-targets */
int FuzzerEntrypoint(const uint8_t *data, size_t size);
+5
View File
@@ -0,0 +1,5 @@
#include "fuzz.h"
int FuzzerEntrypoint(const uint8_t *data, size_t size) {
return LLVMFuzzerTestOneInput(data, size);
}
+4 -1
View File
@@ -987,7 +987,10 @@ tests += [
]
if cxx_cmd != ''
# test-bus-vtable-cc.cc is a symlink and symlinks get lost in containers on FuzzBuzz.
# The issue has been reported to the developers of FuzzBuzz and hopefully will be fixed soon.
# In the meantime, let's just skip the symlink there.
if cxx_cmd != '' and not want_fuzzbuzz
tests += [
[['src/libsystemd/sd-bus/test-bus-vtable-cc.cc'],
[],