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
@@ -484,7 +484,7 @@ static u_int16_t http_request_url_offset(struct ndpi_detection_module_struct *nd
packet->payload_packet_len);
/* Check first char */
if(!strchr(http_fs,packet->payload[0])) return 0;
if(!packet->payload_packet_len || !strchr(http_fs,packet->payload[0])) return 0;
/**
FIRST PAYLOAD PACKET FROM CLIENT
**/