Module: kamailio
Branch: master
Commit: 746748ebc2d4d5552946db90a5b40b31d4a933d5
URL:
https://github.com/kamailio/kamailio/commit/746748ebc2d4d5552946db90a5b40b3…
Author: David Korczynski <david(a)adalogics.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-03-22T12:16:28+01:00
misc: fuzz - folder to hold files for oss-fuzz integration
- GH #2660
---
Added: misc/fuzz/fuzz_uri.c
---
Diff:
https://github.com/kamailio/kamailio/commit/746748ebc2d4d5552946db90a5b40b3…
Patch:
https://github.com/kamailio/kamailio/commit/746748ebc2d4d5552946db90a5b40b3…
---
diff --git a/misc/fuzz/fuzz_uri.c b/misc/fuzz/fuzz_uri.c
new file mode 100644
index 0000000000..9418d6eed4
--- /dev/null
+++ b/misc/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;
+}