mirror of
https://github.com/Tha14/toxic.git
synced 2025-09-17 02:06:52 +02:00
Some minor fixes for game module
This commit is contained in:
@@ -771,7 +771,7 @@ void chat_onGameInvite(ToxWindow *self, Tox *m, uint32_t friend_number, const ui
|
||||
return;
|
||||
}
|
||||
|
||||
if (length < GAME_PACKET_HEADER_SIZE) {
|
||||
if (length < GAME_PACKET_HEADER_SIZE || length > GAME_MAX_DATA_SIZE) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user