ioq3quest/code/game
Ryan C. Gordon af303a4813 SetTeam fix from Martin Doucha.
"Actually, client->ps.clientNum is unsafe. We had a little hunt for this some
time ago in Tremulous last year (it caused kick failures, annoying popup
windows and other nasty bugs). The problem is that a following spectator gets
full copy of client->ps of the followed player including clientNum. If you then
try to use this "shared" clientNum, you might affect someone else than you
wanted.

r1019 changes are safe as long as bots don't spectate players. However, a brief
grep on current code has revealed unsafe client->ps.clientNum usage in
SetTeam(). If a following spectator uses team command when forced balance is
on, it'll count teams incorrectly and send the error message to the followed
player instead. Here's the fix."

  Fixes Bugzilla #2986.
2009-09-14 15:45:52 +00:00
..
ai_chat.c * Merge unified-sdl to trunk 2007-09-05 18:17:46 +00:00
ai_chat.h * Added STATUS 2005-10-29 01:53:09 +00:00
ai_cmd.c fix null termination out of array bounds 2007-08-19 12:11:39 +00:00
ai_cmd.h * Added STATUS 2005-10-29 01:53:09 +00:00
ai_dmnet.c * (bug 3412) %s expansion security patch (DevHC) 2008-01-22 23:44:10 +00:00
ai_dmnet.h * Added STATUS 2005-10-29 01:53:09 +00:00
ai_dmq3.c * Merge unified-sdl to trunk 2007-09-05 18:17:46 +00:00
ai_dmq3.h * Added STATUS 2005-10-29 01:53:09 +00:00
ai_main.c - Replace vsprintf function in bg_lib.c with vsnprintf implementation started by Patrick Powell. 2008-03-25 21:36:09 +00:00
ai_main.h * Added STATUS 2005-10-29 01:53:09 +00:00
ai_team.c fix null termination out of array bounds 2007-08-19 12:11:39 +00:00
ai_team.h * Added STATUS 2005-10-29 01:53:09 +00:00
ai_vcmd.c * Added STATUS 2005-10-29 01:53:09 +00:00
ai_vcmd.h * Added STATUS 2005-10-29 01:53:09 +00:00
bg_lib.c Make cast-workaround to unsigned int use sizeof operator. 2008-03-26 03:13:30 +00:00
bg_lib.h - Replace vsprintf function in bg_lib.c with vsnprintf implementation started by Patrick Powell. 2008-03-25 21:36:09 +00:00
bg_local.h * Added STATUS 2005-10-29 01:53:09 +00:00
bg_misc.c * Merge unified-sdl to trunk 2007-09-05 18:17:46 +00:00
bg_pmove.c * Added STATUS 2005-10-29 01:53:09 +00:00
bg_public.h - "baseq3" literal replacement patch (by Erik Auerswald) applied 2006-04-26 13:36:58 +00:00
bg_slidemove.c * Added STATUS 2005-10-29 01:53:09 +00:00
chars.h * Added STATUS 2005-10-29 01:53:09 +00:00
g_active.c * Added STATUS 2005-10-29 01:53:09 +00:00
g_arenas.c * Merge unified-sdl to trunk 2007-09-05 18:17:46 +00:00
g_bot.c * Merge unified-sdl to trunk 2007-09-05 18:17:46 +00:00
g_client.c * (bug 3393) Blank user names still possible (Michael Jard <kfaust@gmail.com>) 2007-11-02 23:36:23 +00:00
g_cmds.c SetTeam fix from Martin Doucha. 2009-09-14 15:45:52 +00:00
g_combat.c fix potential segfault (found by DerSaidin in xreal) 2009-01-23 20:12:45 +00:00
g_items.c * Added STATUS 2005-10-29 01:53:09 +00:00
g_local.h add missing trap_RealTime prototype (#4015) 2009-05-08 09:17:06 +00:00
g_main.c pass the correct size to Q_vsnprintf (Ian Lindsay) 2008-06-20 07:08:42 +00:00
g_mem.c * Merge unified-sdl to trunk 2007-09-05 18:17:46 +00:00
g_misc.c * Added STATUS 2005-10-29 01:53:09 +00:00
g_missile.c * Added STATUS 2005-10-29 01:53:09 +00:00
g_mover.c * Added STATUS 2005-10-29 01:53:09 +00:00
g_public.h * Added STATUS 2005-10-29 01:53:09 +00:00
g_rankings.c * Added STATUS 2005-10-29 01:53:09 +00:00
g_rankings.h * Added STATUS 2005-10-29 01:53:09 +00:00
g_session.c * Merge unified-sdl to trunk 2007-09-05 18:17:46 +00:00
g_spawn.c * Added STATUS 2005-10-29 01:53:09 +00:00
g_svcmds.c * Added STATUS 2005-10-29 01:53:09 +00:00
g_syscalls.asm remove svn:executable property 2005-08-28 17:54:51 +00:00
g_syscalls.c fix strict aliasing issues 2008-11-03 17:03:54 +00:00
g_target.c * Added STATUS 2005-10-29 01:53:09 +00:00
g_team.c - Replace vsprintf function in bg_lib.c with vsnprintf implementation started by Patrick Powell. 2008-03-25 21:36:09 +00:00
g_team.h * Added STATUS 2005-10-29 01:53:09 +00:00
g_trigger.c * Added STATUS 2005-10-29 01:53:09 +00:00
g_utils.c * Added STATUS 2005-10-29 01:53:09 +00:00
g_weapon.c * Added STATUS 2005-10-29 01:53:09 +00:00
inv.h * Added STATUS 2005-10-29 01:53:09 +00:00
match.h * Added STATUS 2005-10-29 01:53:09 +00:00
syn.h * Added STATUS 2005-10-29 01:53:09 +00:00