Merge pull request #11887 from evverx/fuzzbuzz
tests: hook up fuzz targets to FuzzBuzz
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
#include "fuzz.h"
|
||||
|
||||
int FuzzerEntrypoint(const uint8_t *data, size_t size) {
|
||||
return LLVMFuzzerTestOneInput(data, size);
|
||||
}
|
||||
@@ -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'],
|
||||
[],
|
||||
|
||||
Reference in New Issue
Block a user