Skip to content

Commit

Permalink
Add length check here as well, thanks Ensiform
Browse files Browse the repository at this point in the history
  • Loading branch information
Thilo Schulz committed Dec 3, 2012
1 parent 311acbe commit 6b811ad
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions code/server/sv_main.c
Expand Up @@ -570,6 +570,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
Expand Down

0 comments on commit 6b811ad

Please sign in to comment.