diff options
author | Evgeny Vereshchagin <evvers@ya.ru> | 2019-05-05 19:28:42 +0000 |
---|---|---|
committer | Evgeny Vereshchagin <evvers@ya.ru> | 2019-05-07 21:39:01 +0000 |
commit | 87ac55a12996dbe20ac3f67f2a3b47e650f740e2 (patch) | |
tree | 6b117ab3ccad1c93b571bdcb0da689c8985bfcd0 /src/fuzz | |
parent | 717e8eda77b93ac396dc7ed325d5bcc61dfe2fa8 (diff) | |
download | systemd-87ac55a12996dbe20ac3f67f2a3b47e650f740e2.tar.gz systemd-87ac55a12996dbe20ac3f67f2a3b47e650f740e2.tar.bz2 systemd-87ac55a12996dbe20ac3f67f2a3b47e650f740e2.zip |
tests: hook up fuzz targets to FuzzBuzz
Diffstat (limited to 'src/fuzz')
-rw-r--r-- | src/fuzz/fuzz.h | 3 | ||||
-rw-r--r-- | src/fuzz/fuzzer-entry-point.c | 5 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/fuzz/fuzz.h b/src/fuzz/fuzz.h index 1e56526259..83b1ac11ad 100644 --- a/src/fuzz/fuzz.h +++ b/src/fuzz/fuzz.h @@ -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); diff --git a/src/fuzz/fuzzer-entry-point.c b/src/fuzz/fuzzer-entry-point.c new file mode 100644 index 0000000000..020c111650 --- /dev/null +++ b/src/fuzz/fuzzer-entry-point.c @@ -0,0 +1,5 @@ +#include "fuzz.h" + +int FuzzerEntrypoint(const uint8_t *data, size_t size) { + return LLVMFuzzerTestOneInput(data, size); +} |