1
0
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:
jfreegman
2021-06-28 13:54:25 -04:00
parent 321f694bb8
commit 8dfd009e0e
10 changed files with 80 additions and 49 deletions

View File

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