2
0
Fork 0
mirror of https://github.com/Shpoike/Quakespasm.git synced 2025-06-03 02:11:22 +00:00

Bump QC stack sizes, to reduce chances of overflows.

This commit is contained in:
Shpoike 2020-01-12 07:45:41 +00:00
parent 598038b7f2
commit 7a76790d92

View file

@ -286,11 +286,11 @@ struct qcvm_s
size_t knownzonesize;
//originally defined in pr_exec, but moved into the switchable qcvm struct
#define MAX_STACK_DEPTH 64 /* was 32 */
#define MAX_STACK_DEPTH 1024 /*was 64*/ /* was 32 */
prstack_t stack[MAX_STACK_DEPTH];
int depth;
#define LOCALSTACK_SIZE 2048
#define LOCALSTACK_SIZE 16384 /* was 2048*/
int localstack[LOCALSTACK_SIZE];
int localstack_used;