From 931e2fc053b0596b11a8a1c047d4ab94b9ee796f Mon Sep 17 00:00:00 2001 From: davkor Date: Thu, 4 Mar 2021 13:22:04 +0000 Subject: [PATCH] Adds initial fuzzer for integration with oss-fuzz. oss-fuzz is a service that continuously runs fuzzers for important open source projects. This commit integrates fuzzing into kamailio so that it can be used with oss-fuzz. --- fuzz/fuzz_uri.c | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 fuzz/fuzz_uri.c diff --git a/fuzz/fuzz_uri.c b/fuzz/fuzz_uri.c new file mode 100644 index 00000000000..9418d6eed4d --- /dev/null +++ b/fuzz/fuzz_uri.c @@ -0,0 +1,8 @@ +#include "../parser/parse_uri.c" + +int +LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { + struct sip_uri uri; + parse_uri(data, size, &uri); + return 0; +}