H323: fix a use-after-poison error (#1412)

Detected by oss-fuzz
See: https://oss-fuzz.com/testcase-detail/6730505580576768

Fix a function prototype
Update a unit test results
This commit is contained in:
Ivan Nardi
2022-01-17 19:47:27 +01:00
committed by GitHub
parent d19bd96555
commit e4a7990a4e
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -94,7 +94,7 @@ void ndpi_search_h323(struct ndpi_detection_module_struct *ndpi_struct, struct n
}
/* H323 */
if(sport == 1719 || dport == 1719) {
if((packet->payload_packet_len >= 5)
if((packet->payload_packet_len > 5)
&& (packet->payload[0] == 0x16)
&& (packet->payload[1] == 0x80)
&& (packet->payload[4] == 0x06)