Loophole closed that could have been used to crash the engine.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@385 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
10ad1bbade
commit
cd9c6d7811
1 changed files with 8 additions and 0 deletions
|
@ -314,6 +314,13 @@ void SVQ2_ConfigStrings_f (void)
|
||||||
|
|
||||||
start = atoi(Cmd_Argv(2));
|
start = atoi(Cmd_Argv(2));
|
||||||
|
|
||||||
|
if (start < 0)
|
||||||
|
{
|
||||||
|
Con_Printf ("SV_Configstrings_f: %s tried crashing us\n", host_client->name);
|
||||||
|
host_client->drop = true;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// write a packet full of data
|
// write a packet full of data
|
||||||
|
|
||||||
while ( host_client->netchan.message.cursize < MAX_QWMSGLEN/2
|
while ( host_client->netchan.message.cursize < MAX_QWMSGLEN/2
|
||||||
|
@ -3975,6 +3982,7 @@ haveannothergo:
|
||||||
SV_RunCmd (&newcmd, false);
|
SV_RunCmd (&newcmd, false);
|
||||||
|
|
||||||
SV_PostRunCmd();
|
SV_PostRunCmd();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
cl->lastcmd = newcmd;
|
cl->lastcmd = newcmd;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue