summaryrefslogtreecommitdiffstats
path: root/generic/tclExecute.c
diff options
context:
space:
mode:
authorMiguel Sofer <miguel.sofer@gmail.com>2004-10-28 17:21:18 (GMT)
committerMiguel Sofer <miguel.sofer@gmail.com>2004-10-28 17:21:18 (GMT)
commit151836cea1737631c005e07ca9a26e7641ff009d (patch)
tree090220d9e325f851fb03102f9a4042735591871d /generic/tclExecute.c
parent56606ac70dec0e61009ec6ef2da57193abc0c33b (diff)
downloadtcl-151836cea1737631c005e07ca9a26e7641ff009d.zip
tcl-151836cea1737631c005e07ca9a26e7641ff009d.tar.gz
tcl-151836cea1737631c005e07ca9a26e7641ff009d.tar.bz2
fix for execution stack corruption [Bug 1055676]. Credit dgp for detective
work and fix.
Diffstat (limited to 'generic/tclExecute.c')
-rw-r--r--generic/tclExecute.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/generic/tclExecute.c b/generic/tclExecute.c
index 4c5c7d9..b5d24cd 100644
--- a/generic/tclExecute.c
+++ b/generic/tclExecute.c
@@ -11,7 +11,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.162 2004/10/25 20:24:12 dgp Exp $
+ * RCS: @(#) $Id: tclExecute.c,v 1.163 2004/10/28 17:21:23 msofer Exp $
*/
#ifdef STDC_HEADERS
@@ -1317,7 +1317,9 @@ TclExecuteByteCode(interp, codePtr)
Tcl_Obj *newObjResultPtr;
bytes = GetSrcInfoForPc(pc, codePtr, &length);
+ DECACHE_STACK_INFO();
result = Tcl_EvalEx(interp, bytes, length, 0);
+ CACHE_STACK_INFO();
if (result != TCL_OK) {
cleanup = 0;
goto processExceptionReturn;