Fix invalid reads and add valgrind test

This commit is contained in:
emanuele-f
2019-12-04 13:06:05 +01:00
parent e66d7216b8
commit d62526f9ed
3 changed files with 35 additions and 2 deletions
+1 -1
View File
@@ -296,7 +296,7 @@ static void ndpi_search_ssh_tcp(struct ndpi_detection_module_struct *ndpi_struct
flow->l4.tcp.ssh_stage = 3;
return;
}
} else {
} else if(packet->payload_packet_len > 5) {
u_int8_t msgcode = *(packet->payload + 5);
ndpi_MD5_CTX ctx;