mirror of
https://github.com/ioquake/ioq3.git
synced 2025-06-02 01:42:12 +00:00
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:
parent
fbada2caf6
commit
05858d30e8
6 changed files with 64 additions and 11 deletions
|
@ -566,7 +566,7 @@ static void FS_CheckFilenameIsMutable( const char *filename,
|
|||
const char *function )
|
||||
{
|
||||
// Check if the filename ends with the library, QVM, or pk3 extension
|
||||
if( COM_CompareExtension( filename, DLL_EXT )
|
||||
if( Sys_DllExtension( filename )
|
||||
|| COM_CompareExtension( filename, ".qvm" )
|
||||
|| COM_CompareExtension( filename, ".pk3" ) )
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue