From 4cdc6317bfd749cb3f29b4b05b65c763ba709e7f Mon Sep 17 00:00:00 2001 From: havoc Date: Wed, 14 Jun 2006 16:22:11 +0000 Subject: [PATCH] reduce runaway loop counter limit from 1 billion to 10 million, as 1 billion takes a while git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6479 d7cf8633-e32d-0410-b094-e92efae38249 --- prvm_execprogram.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/prvm_execprogram.h b/prvm_execprogram.h index e1159c8f..aa72801c 100644 --- a/prvm_execprogram.h +++ b/prvm_execprogram.h @@ -229,7 +229,7 @@ prog->xfunction->profile += (st - startst); st += st->b - 1; // offset the s++ startst = st; - if (++jumpcount == 1000000000) + if (++jumpcount == 10000000) { prog->xstatement = st - prog->statements; PRVM_ERROR("runaway loop counter hit limit of %d jumps\ntip: if having trouble identifying the problem, try typing profile now in %s", jumpcount, PRVM_NAME); @@ -243,7 +243,7 @@ prog->xfunction->profile += (st - startst); st += st->b - 1; // offset the s++ startst = st; - if (++jumpcount == 1000000000) + if (++jumpcount == 10000000) { prog->xstatement = st - prog->statements; PRVM_ERROR("runaway loop counter hit limit of %d jumps\ntip: if having trouble identifying the problem, try typing profile now in %s", jumpcount, PRVM_NAME); @@ -255,7 +255,7 @@ prog->xfunction->profile += (st - startst); st += st->a - 1; // offset the s++ startst = st; - if (++jumpcount == 1000000000) + if (++jumpcount == 10000000) { prog->xstatement = st - prog->statements; PRVM_ERROR("runaway loop counter hit limit of %d jumps\ntip: if having trouble identifying the problem, try typing profile now in %s", jumpcount, PRVM_NAME); -- 2.39.2