Quic fixes (#1106)

* QUIC: fix heap-buffer-overflow

* TLS: fix parsing of QUIC Transport Parameters
This commit is contained in:
Ivan Nardi
2021-01-07 10:55:55 +01:00
committed by GitHub
parent b8a5358e80
commit 00dabce65e
2 changed files with 15 additions and 6 deletions
+1 -1
View File
@@ -1474,7 +1474,7 @@ int processClientServerHello(struct ndpi_detection_module_struct *ndpi_struct,
#ifdef DEBUG_TLS
printf("Client SSL [QUIC TP: Param 0x%x Len %d]\n", (int)param_type, (int)param_len);
#endif
if(s_offset+param_len >= final_offset)
if(s_offset+param_len > final_offset)
break;
if(param_type==0x3129) {