(#3767) Some protection from malicious qvms - patches and ideas by Amanieu d'Antras and Ben Millwood
This commit is contained in:
parent
657c791257
commit
8c3f320504
12 changed files with 155 additions and 26 deletions
|
@ -314,7 +314,7 @@ intptr_t SV_GameSystemCalls( intptr_t *args ) {
|
|||
Cvar_Update( VMA(1) );
|
||||
return 0;
|
||||
case G_CVAR_SET:
|
||||
Cvar_Set( (const char *)VMA(1), (const char *)VMA(2) );
|
||||
Cvar_SetSafe( (const char *)VMA(1), (const char *)VMA(2) );
|
||||
return 0;
|
||||
case G_CVAR_VARIABLE_INTEGER_VALUE:
|
||||
return Cvar_VariableIntegerValue( (const char *)VMA(1) );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue