Added TLS bounadry check
This commit is contained in:
@@ -678,7 +678,7 @@ static int ndpi_search_tls_tcp(struct ndpi_detection_module_struct *ndpi_struct,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
packet->payload = block, packet->payload_packet_len = block_len+4;
|
packet->payload = block, packet->payload_packet_len = ndpi_min(block_len+4, flow->l4.tcp.tls.message.buffer_used);
|
||||||
|
|
||||||
if((processed+packet->payload_packet_len) > len) {
|
if((processed+packet->payload_packet_len) > len) {
|
||||||
something_went_wrong = 1;
|
something_went_wrong = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user