mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-17 18:40:02 +00:00
engine: client: make temp entity buffer larger in case of long textmessages
This commit is contained in:
parent
f0a856d9c8
commit
af8febabd1
@ -1904,7 +1904,7 @@ handle temp-entity messages
|
||||
void CL_ParseTempEntity( sizebuf_t *msg )
|
||||
{
|
||||
sizebuf_t buf;
|
||||
byte pbuf[256];
|
||||
byte pbuf[2048];
|
||||
int iSize;
|
||||
int type, color, count, flags;
|
||||
int decalIndex, modelIndex, entityIndex;
|
||||
@ -1923,6 +1923,10 @@ void CL_ParseTempEntity( sizebuf_t *msg )
|
||||
|
||||
decalIndex = modelIndex = entityIndex = 0;
|
||||
|
||||
// this will probably be fatal anyway
|
||||
if( iSize > sizeof( pbuf ))
|
||||
Con_Printf( S_ERROR "%s: Temp buffer overflow!\n", __FUNCTION__ );
|
||||
|
||||
// parse user message into buffer
|
||||
MSG_ReadBytes( msg, pbuf, iSize );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user