mirror of
https://github.com/vel21ripn/nDPI.git
synced 2026-04-30 16:09:43 +00:00
Kerberos, TLS, example: fix some memory errors (#1419)
Detected by oss-fuzz: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=43823 https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=43921 https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=43925
This commit is contained in:
parent
011ee3ecbd
commit
9dcc4a2334
3 changed files with 8 additions and 2 deletions
|
|
@ -230,7 +230,7 @@ void ndpi_search_kerberos(struct ndpi_detection_module_struct *ndpi_struct,
|
|||
name_offset++;
|
||||
}
|
||||
|
||||
if(name_offset < packet->payload_packet_len - 1 &&
|
||||
if(name_offset < packet->payload_packet_len - 3 &&
|
||||
packet->payload[name_offset+1] == 0x1b)
|
||||
{
|
||||
name_offset += 2;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue