(#3767) Some protection from malicious qvms - patches and ideas by Amanieu d'Antras and Ben Millwood
This commit is contained in:
1 parent
657c791257
commit
8c3f320504
12 files changed
+155
-26
No files matched your search
+2
-2
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user