Sync utests (#1433)

* Sync utest results

* Fix read-heap-buffer-overflow error reported by CI

See: https://github.com/ntop/nDPI/runs/5055876515?check_suite_focus=true
This commit is contained in:
Ivan Nardi
2022-02-04 15:57:17 +01:00
committed by GitHub
parent f5035521e8
commit 79968f3245
3 changed files with 2112 additions and 50 deletions
+4
View File
@@ -6096,6 +6096,8 @@ void ndpi_parse_packet_line_info(struct ndpi_detection_module_struct *ndpi_str,
while((packet->authorization_line.len > 0) && (packet->authorization_line.ptr[0] == ' '))
packet->authorization_line.len--, packet->authorization_line.ptr++;
if(packet->authorization_line.len == 0)
packet->authorization_line.ptr = NULL;
packet->http_num_headers++;
} else
@@ -6207,6 +6209,8 @@ void ndpi_parse_packet_line_info(struct ndpi_detection_module_struct *ndpi_str,
while((packet->content_line.len > 0) && (packet->content_line.ptr[0] == ' '))
packet->content_line.len--, packet->content_line.ptr++;
if(packet->content_line.len == 0)
packet->content_line.ptr = NULL;;
packet->http_num_headers++;
} else