name correction for llc_snap header and minor fix

This commit is contained in:
Campus 2017-04-15 00:40:01 +02:00
parent 29cd6ef994
commit 2b0809f3dc
3 changed files with 7 additions and 9 deletions

View file

@ -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);