[quake3-commits] r2369 - trunk/code/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Mon Dec 3 12:58:55 EST 2012
Author: thilo
Date: 2012-12-03 12:58:55 -0500 (Mon, 03 Dec 2012)
New Revision: 2369
Modified:
trunk/code/server/sv_main.c
Log:
Add length check here as well, thanks Ensiform
Modified: trunk/code/server/sv_main.c
===================================================================
--- trunk/code/server/sv_main.c 2012-12-01 23:17:14 UTC (rev 2368)
+++ trunk/code/server/sv_main.c 2012-12-03 17:58:55 UTC (rev 2369)
@@ -570,6 +570,10 @@
return;
}
+ // A maximum challenge length of 128 should be more than plenty.
+ if(strlen(Cmd_Argv(1)) > 128)
+ return;
+
strcpy( infostring, Cvar_InfoString( CVAR_SERVERINFO ) );
// echo back the parameter to status. so master servers can use it as a challenge
More information about the quake3-commits
mailing list