diff options
author | tma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2005-09-19 17:45:29 +0000 |
---|---|---|
committer | tma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2005-09-19 17:45:29 +0000 |
commit | 275b73aa64da7c4b5083216d273877380ceebe73 (patch) | |
tree | 6e26bdbc5a43c5d26a21d090ff4e9840ed61670b /code/server | |
parent | 9170f3b736b0cfd2818333cf60e2c4ff1959e30f (diff) | |
download | ioquake3-aero-275b73aa64da7c4b5083216d273877380ceebe73.tar.gz ioquake3-aero-275b73aa64da7c4b5083216d273877380ceebe73.zip |
* 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
git-svn-id: svn://svn.icculus.org/quake3/trunk@95 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/server')
-rw-r--r-- | code/server/sv_main.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/code/server/sv_main.c b/code/server/sv_main.c index 0d3f96c..2804a52 100644 --- a/code/server/sv_main.c +++ b/code/server/sv_main.c @@ -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; |