Add string length checking to function COM_StripExtension. This fixes the R_RemapShader buffer overflow exploit that can be found here:
http://milw0rm.com/exploits/1750
This commit is contained in:
parent
2e368c02a6
commit
d21411452e
13 changed files with 22 additions and 22 deletions
|
@ -588,7 +588,7 @@ int Q_isnan( float x );
|
|||
float Com_Clamp( float min, float max, float value );
|
||||
|
||||
char *COM_SkipPath( char *pathname );
|
||||
void COM_StripExtension( const char *in, char *out );
|
||||
void COM_StripExtension(const char *in, char *out, int destsize);
|
||||
void COM_DefaultExtension( char *path, int maxSize, const char *extension );
|
||||
|
||||
void COM_BeginParseSession( const char *name );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue