summaryrefslogtreecommitdiffstats
path: root/generic/tclBasic.c
diff options
context:
space:
mode:
authordas <das>2007-11-11 05:23:39 (GMT)
committerdas <das>2007-11-11 05:23:39 (GMT)
commitbbed48f843a3bbe1cd2df6a00c538d187b73370a (patch)
tree47172448bc496c0232447da97c04e3d88f2fc3be /generic/tclBasic.c
parentd80b7d2e0b8864a06c6a452217273f926ed47fa1 (diff)
downloadtcl-bbed48f843a3bbe1cd2df6a00c538d187b73370a.zip
tcl-bbed48f843a3bbe1cd2df6a00c538d187b73370a.tar.gz
tcl-bbed48f843a3bbe1cd2df6a00c538d187b73370a.tar.bz2
* generic/tclBasic.c: fix stack check failure case if stack grows up.
Diffstat (limited to 'generic/tclBasic.c')
-rw-r--r--generic/tclBasic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclBasic.c b/generic/tclBasic.c
index e8faad0..b44e3d3 100644
--- a/generic/tclBasic.c
+++ b/generic/tclBasic.c
@@ -14,7 +14,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclBasic.c,v 1.276 2007/11/10 22:24:13 msofer Exp $
+ * RCS: @(#) $Id: tclBasic.c,v 1.277 2007/11/11 05:23:39 das Exp $
*/
#include "tclInt.h"
@@ -353,7 +353,7 @@ static int stackGrowsDown = 1;
TclpGetCStackParams(&((iPtr)->stackBound))
#ifdef TCL_STACK_GROWS_UP
#define CheckCStack(iPtr, localIntPtr) \
- ((localIntPtr) < (iPtr)->stackBound)
+ ((iPtr)->stackBound && (localIntPtr) < (iPtr)->stackBound)
#else /* TCL_STACK_GROWS_UP */
#define CheckCStack(iPtr, localIntPtr) \
((localIntPtr) > (iPtr)->stackBound)