Add opStack protection to defend against malicious QVMs
This commit is contained in:
parent
5f63ab9160
commit
a7ea395bd0
2 changed files with 196 additions and 166 deletions
|
@ -22,7 +22,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
#include "q_shared.h"
|
||||
#include "qcommon.h"
|
||||
|
||||
#define OPSTACK_SIZE 256
|
||||
#define OPSTACK_SIZE 1024
|
||||
#define OPSTACK_MASK (OPSTACK_SIZE-1)
|
||||
|
||||
// don't change
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue