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
|
@ -842,3 +842,14 @@ qboolean Sys_PIDIsRunning( int pid )
|
|||
|
||||
return qfalse;
|
||||
}
|
||||
|
||||
/*
|
||||
=================
|
||||
Sys_DllExtension
|
||||
|
||||
Check if filename should be allowed to be loaded as a DLL.
|
||||
=================
|
||||
*/
|
||||
qboolean Sys_DllExtension( const char *name ) {
|
||||
return COM_CompareExtension( name, DLL_EXT );
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue