Merge pull request #6658 from Faless/fix_bo_network

Fix possible buffer overflow in NetworkedMultiplayerENet
This commit is contained in:
Rémi Verschelde 2016-09-30 07:26:33 +02:00 committed by GitHub
commit dabcabe981

View file

@ -359,7 +359,7 @@ Error NetworkedMultiplayerENet::get_packet(const uint8_t **r_buffer,int &r_buffe
incoming_packets.pop_front();
*r_buffer=(const uint8_t*)(&current_packet.packet->data[12]);
r_buffer_size=current_packet.packet->dataLength;
r_buffer_size=current_packet.packet->dataLength-12;
return OK;
}