mirror of
https://github.com/vel21ripn/nDPI.git
synced 2026-11-30 12:01:59 +00:00
Fixed heap-buffer-overflow in TLS dissector
This commit is contained in:
parent
8db8c8ae34
commit
c3d1c69722
1 changed files with 1 additions and 1 deletions
|
|
@ -1536,7 +1536,7 @@ int processClientServerHello(struct ndpi_detection_module_struct *ndpi_struct,
|
|||
if((cipher_offset+cipher_len) <= total_len) {
|
||||
u_int8_t safari_ciphers = 0, chrome_ciphers = 0, this_is_not_safari = 0, looks_like_safari_on_big_sur = 0;
|
||||
|
||||
for(i=0; i<cipher_len;) {
|
||||
for(i=0; i<cipher_len-1;) {
|
||||
u_int16_t *id = (u_int16_t*)&packet->payload[cipher_offset+i];
|
||||
u_int16_t cipher_id = ntohs(*id);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue