mirror of
https://github.com/ioquake/ioq3.git
synced 2025-05-30 00:20:59 +00:00
* Fix to multiple buffer overflow bugs in CL_Rcon_f
* Fix to COM_ParseExt 1 byte overwrite bug * Fixed some missing calls to trap_FS_FCloseFile * Fixed q3msgboom and q3infoboom bugs * Fixed some qboolean type confusion * Above fixes from http://www.quakesrc.org/forums/viewtopic.php?t=5374
This commit is contained in:
parent
b185817285
commit
33a48a0336
9 changed files with 26 additions and 19 deletions
|
@ -172,6 +172,14 @@ void QDECL SV_SendServerCommand(client_t *cl, const char *fmt, ...) {
|
|||
Q_vsnprintf ((char *)message, sizeof(message), fmt,argptr);
|
||||
va_end (argptr);
|
||||
|
||||
// Fix to http://aluigi.altervista.org/adv/q3msgboom-adv.txt
|
||||
// The actual cause of the bug is probably further downstream
|
||||
// and should maybe be addressed later, but this certainly
|
||||
// fixes the problem for now
|
||||
if ( strlen ((char *)message) > 1022 ) {
|
||||
return;
|
||||
}
|
||||
|
||||
if ( cl != NULL ) {
|
||||
SV_AddServerCommand( cl, (char *)message );
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue