mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
engine: client: correctly skip message that would overflow temp entity buffer
This commit is contained in:
@@ -1900,7 +1900,11 @@ void CL_ParseTempEntity( sizebuf_t *msg, connprotocol_t proto )
|
||||
|
||||
// this will probably be fatal anyway
|
||||
if( iSize > sizeof( msg_data ))
|
||||
{
|
||||
Con_Printf( S_ERROR "%s: Temp buffer overflow!\n", __func__ );
|
||||
MSG_SeekToBit( msg, iSize << 3, SEEK_CUR );
|
||||
return;
|
||||
}
|
||||
|
||||
// parse user message into buffer
|
||||
MSG_ReadBytes( msg, msg_data, iSize );
|
||||
|
||||
Reference in New Issue
Block a user