From ee825f42e97ecdb6aecf168874034cb58179c2c8 Mon Sep 17 00:00:00 2001 From: ChillerDragon Date: Tue, 21 Jan 2020 22:20:09 +0100 Subject: [PATCH] Add snap check for dummy --- src/engine/client/client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/client/client.cpp b/src/engine/client/client.cpp index d6010b839..b2c6507f1 100644 --- a/src/engine/client/client.cpp +++ b/src/engine/client/client.cpp @@ -2087,7 +2087,7 @@ void CClient::ProcessServerPacketDummy(CNetChunk *pPacket) pData = (const char *)Unpacker.GetRaw(PartSize); - if(Unpacker.Error() || NumParts < 1 || Part < 0 || PartSize < 0) + if(Unpacker.Error() || NumParts < 1 || NumParts > CSnapshot::MAX_PARTS || Part < 0 || Part >= NumParts || PartSize < 0 || PartSize > MAX_SNAPSHOT_PACKSIZE) return; if(GameTick >= m_CurrentRecvTick[!g_Config.m_ClDummy])