Add opStack protection to defend against malicious QVMs

This commit is contained in:
Thilo Schulz 2011-05-10 09:14:49 +00:00
parent 5f63ab9160
commit a7ea395bd0
2 changed files with 196 additions and 166 deletions

View file

@ -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