Browse code

misc: fuzz: extend msg parsing fuzzer

David Korczynski authored on 13/09/2021 10:19:28 • Daniel-Constantin Mierla committed on 14/09/2021 08:11:18
Showing 1 changed files
... ...
@@ -6,6 +6,8 @@
6 6
 #include "../parser/parse_ppi_pai.h"
7 7
 #include "../parser/parse_privacy.h"
8 8
 #include "../parser/parse_diversion.h"
9
+#include "../parser/parse_identityinfo.h"
10
+#include "../parser/parse_disposition.h"
9 11
 
10 12
 int LLVMFuzzerInitialize(int *argc, char ***argv) {
11 13
     ksr_hname_init_index();
... ...
@@ -37,6 +39,16 @@ LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
37 39
 
38 40
     parse_privacy(&orig_inv);
39 41
 
42
+    parse_content_disposition(&orig_inv);
43
+
44
+    parse_identityinfo_header(&orig_inv);
45
+
46
+    str uri;
47
+    get_src_uri(&orig_inv, 0, &uri);
48
+
49
+    str ssock;
50
+    get_src_address_socket(&orig_inv, &ssock);
51
+
40 52
 cleanup:
41 53
     free_sip_msg(&orig_inv);
42 54