diff options
author | Miguel Sofer <miguel.sofer@gmail.com> | 2010-10-09 16:31:28 (GMT) |
---|---|---|
committer | Miguel Sofer <miguel.sofer@gmail.com> | 2010-10-09 16:31:28 (GMT) |
commit | d2695cf0343eae37d19350fa68f4028c2dc8e3ec (patch) | |
tree | cb672db1ceb5865e4fbec2f3937edba5d093e394 /generic/tclExecute.c | |
parent | 35b6ce98296b163f9a1b1611b4bddab453917681 (diff) | |
download | tcl-d2695cf0343eae37d19350fa68f4028c2dc8e3ec.zip tcl-d2695cf0343eae37d19350fa68f4028c2dc8e3ec.tar.gz tcl-d2695cf0343eae37d19350fa68f4028c2dc8e3ec.tar.bz2 |
* generic/tclExecute.c: fix overallocation of exec stack in TEBC
(mixing numwords and numbytes)
Diffstat (limited to 'generic/tclExecute.c')
-rw-r--r-- | generic/tclExecute.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclExecute.c b/generic/tclExecute.c index 40f513a..d70fcba 100644 --- a/generic/tclExecute.c +++ b/generic/tclExecute.c @@ -13,7 +13,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclExecute.c,v 1.369.2.17 2010/10/04 05:23:47 hobbs Exp $ + * RCS: @(#) $Id: tclExecute.c,v 1.369.2.18 2010/10/09 16:31:28 msofer Exp $ */ #include "tclInt.h" @@ -1799,8 +1799,8 @@ TclExecuteByteCode( catchTop = initCatchTop = (ptrdiff_t *) ( GrowEvaluationStack(iPtr->execEnvPtr, - codePtr->maxExceptDepth + sizeof(CmdFrame) + - codePtr->maxStackDepth, 0) - 1); + (sizeof(CmdFrame) + sizeof(Tcl_Obj *) - 1)/sizeof(Tcl_Obj *) + + codePtr->maxExceptDepth + codePtr->maxStackDepth, 0) - 1); bcFramePtr = (CmdFrame *) (initCatchTop + codePtr->maxExceptDepth + 1); tosPtr = initTosPtr = ((Tcl_Obj **) (bcFramePtr + 1)) - 1; esPtr = iPtr->execEnvPtr->execStackPtr; |