Skip to content

Commit

Permalink
Fix syslog heap overflow introduced in 09fbe0a.
Browse files Browse the repository at this point in the history
 - fixes #1578

Signed-off-by: lns <[email protected]>
  • Loading branch information
utoni committed Jun 3, 2022
1 parent 09fbe0a commit c738e0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/protocols/syslog.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ void ndpi_search_syslog(struct ndpi_detection_module_struct
NDPI_LOG_DBG2(ndpi_struct, "no blank following the >: do nothing\n");
}

while (i < packet->payload_packet_len)
while (i < packet->payload_packet_len - 1)
{
if (ndpi_isalnum(packet->payload[i]) == 0)
{
Expand Down

0 comments on commit c738e0a

Please sign in to comment.