diff options
author | Thilo Schulz <arny@ats.s.bawue.de> | 2012-12-03 17:58:55 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-12 21:24:52 +0000 |
commit | 815a7ae53be78f1f7108dbf086b2928d3017bbe4 (patch) | |
tree | 6e0c4d803b694e26c55778c36b73d58cd4750344 /src/server | |
parent | bdaedb383fc631df44a4f29d5ab90761b22f8d54 (diff) |
Add length check here as well, thanks Ensiform
Diffstat (limited to 'src/server')
-rw-r--r-- | src/server/sv_main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/server/sv_main.c b/src/server/sv_main.c index bee0ec19..100e97ce 100644 --- a/src/server/sv_main.c +++ b/src/server/sv_main.c @@ -582,6 +582,10 @@ static void SVC_Status( netadr_t from ) { 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 |