mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
engine: server: fix SV_ProcessFile crash from short malformed filename (#2606)
This commit is contained in:
@@ -312,6 +312,12 @@ static void SV_ProcessFile( sv_client_t *cl, const char *filename )
|
||||
return;
|
||||
}
|
||||
|
||||
if( Q_strlen( filename ) < 36 )
|
||||
{
|
||||
Con_Printf( "%s: Malformed customization filename from %s (too short)\n", __func__, cl->name );
|
||||
return;
|
||||
}
|
||||
|
||||
COM_HexConvert( filename + 4, 32, md5 );
|
||||
|
||||
for( resource = cl->resourcesneeded.pNext; resource != &cl->resourcesneeded; resource = next )
|
||||
|
||||
Reference in New Issue
Block a user