mirror of
https://github.com/vel21ripn/nDPI.git
synced 2026-05-01 16:30:17 +00:00
name correction for llc_snap header and minor fix
This commit is contained in:
parent
29cd6ef994
commit
2b0809f3dc
3 changed files with 7 additions and 9 deletions
|
|
@ -1331,7 +1331,7 @@ static void pcap_packet_callback_checked(u_char *args,
|
|||
u_int16_t thread_id = *((u_int16_t*)args);
|
||||
|
||||
/* allocate an exact size buffer to check overflows */
|
||||
uint8_t *packet_checked = malloc(header->caplen); /* HEAP OVERFLOW !!! */
|
||||
uint8_t *packet_checked = malloc(header->caplen);
|
||||
|
||||
memcpy(packet_checked, packet, header->caplen);
|
||||
p = ndpi_workflow_process_packet(ndpi_thread_info[thread_id].workflow, header, packet_checked);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue