(#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
|
@ -731,7 +731,7 @@ intptr_t CL_UISystemCalls( intptr_t *args ) {
|
|||
return 0;
|
||||
|
||||
case UI_CVAR_SET:
|
||||
Cvar_Set( VMA(1), VMA(2) );
|
||||
Cvar_SetSafe( VMA(1), VMA(2) );
|
||||
return 0;
|
||||
|
||||
case UI_CVAR_VARIABLEVALUE:
|
||||
|
@ -742,7 +742,7 @@ intptr_t CL_UISystemCalls( intptr_t *args ) {
|
|||
return 0;
|
||||
|
||||
case UI_CVAR_SETVALUE:
|
||||
Cvar_SetValue( VMA(1), VMF(2) );
|
||||
Cvar_SetValueSafe( VMA(1), VMF(2) );
|
||||
return 0;
|
||||
|
||||
case UI_CVAR_RESET:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue