Don't load libraries with non-standard file extensions

Also don't allow writting files ending in a library extension such
as ".so.0" or ".dylib.0".
This commit is contained in:
Zack Middleton 2017-05-24 09:17:39 -05:00
parent fbada2caf6
commit 05858d30e8
6 changed files with 64 additions and 11 deletions

View file

@ -2517,12 +2517,6 @@ qboolean S_AL_Init( soundInterface_t *si )
s_alInputDevice = Cvar_Get( "s_alInputDevice", "", CVAR_ARCHIVE | CVAR_LATCH );
s_alDevice = Cvar_Get("s_alDevice", "", CVAR_ARCHIVE | CVAR_LATCH);
if ( COM_CompareExtension( s_alDriver->string, ".pk3" ) )
{
Com_Printf( "Rejecting DLL named \"%s\"", s_alDriver->string );
return qfalse;
}
// Load QAL
if( !QAL_Init( s_alDriver->string ) )
{