STUN: parsing of DATA attribute (#2179)

This commit is contained in:
Ivan Nardi
2023-12-01 07:01:49 +01:00
committed by GitHub
parent 24df1913ac
commit 983b8e8eee
13 changed files with 37 additions and 10 deletions
+2
View File
@@ -4,6 +4,7 @@
static struct ndpi_detection_module_struct *ndpi_struct = NULL;
static struct ndpi_flow_struct ndpi_flow;
struct ndpi_iphdr iph;
#ifdef STUN_TCP
struct ndpi_tcphdr tcph;
#else
@@ -31,6 +32,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
#else
packet->tcp = &tcph;
#endif
packet->iph = &iph; /* IPv4 only */
is_stun(ndpi_struct, &ndpi_flow, &app_proto);
return 0;