Fixed more buffer overflows with small packets
This commit is contained in:
@@ -54,7 +54,7 @@ static void ndpi_check_spotify(struct ndpi_detection_module_struct *ndpi_struct,
|
||||
}
|
||||
} else if(packet->tcp != NULL) {
|
||||
|
||||
if(packet->payload[0] == 0x00 && packet->payload[1] == 0x04 &&
|
||||
if(payload_len >= 8 && packet->payload[0] == 0x00 && packet->payload[1] == 0x04 &&
|
||||
packet->payload[2] == 0x00 && packet->payload[3] == 0x00&&
|
||||
packet->payload[6] == 0x52 && packet->payload[7] == 0x0e &&
|
||||
packet->payload[8] == 0x50 ) {
|
||||
|
||||
Reference in New Issue
Block a user