Module: kamailio
Branch: master
Commit: ef457eea6f4eff1f52829db5ab88e08b74b8da86
URL:
https://github.com/kamailio/kamailio/commit/ef457eea6f4eff1f52829db5ab88e08…
Author: David Korczynski <david(a)adalogics.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-09-14T10:11:18+02:00
misc: fuzz: extend msg parsing fuzzer
---
Modified: misc/fuzz/fuzz_parse_msg.c
---
Diff:
https://github.com/kamailio/kamailio/commit/ef457eea6f4eff1f52829db5ab88e08…
Patch:
https://github.com/kamailio/kamailio/commit/ef457eea6f4eff1f52829db5ab88e08…
---
diff --git a/misc/fuzz/fuzz_parse_msg.c b/misc/fuzz/fuzz_parse_msg.c
index ef656abd3a..8de9175549 100644
--- a/misc/fuzz/fuzz_parse_msg.c
+++ b/misc/fuzz/fuzz_parse_msg.c
@@ -6,6 +6,8 @@
#include "../parser/parse_ppi_pai.h"
#include "../parser/parse_privacy.h"
#include "../parser/parse_diversion.h"
+#include "../parser/parse_identityinfo.h"
+#include "../parser/parse_disposition.h"
int LLVMFuzzerInitialize(int *argc, char ***argv) {
ksr_hname_init_index();
@@ -37,6 +39,16 @@ LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
parse_privacy(&orig_inv);
+ parse_content_disposition(&orig_inv);
+
+ parse_identityinfo_header(&orig_inv);
+
+ str uri;
+ get_src_uri(&orig_inv, 0, &uri);
+
+ str ssock;
+ get_src_address_socket(&orig_inv, &ssock);
+
cleanup:
free_sip_msg(&orig_inv);