Skip to content

Commit

Permalink
Heap overflow fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaderi committed Nov 16, 2024
1 parent 95bf287 commit 35f37c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/protocols/mikrotik.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ static void ndpi_search_mikrotik(struct ndpi_detection_module_struct *ndpi_struc

// printf("%d\n", m_type);

if((m_len+offset) < packet->payload_packet_len) {
if((4+m_len+offset) < packet->payload_packet_len) {
switch(m_type) {
case 1 /* MAC Address */:
if(m_len == 6)
Expand Down

0 comments on commit 35f37c3

Please sign in to comment.