diff options
author | Miguel Sofer <miguel.sofer@gmail.com> | 2004-10-28 17:21:18 (GMT) |
---|---|---|
committer | Miguel Sofer <miguel.sofer@gmail.com> | 2004-10-28 17:21:18 (GMT) |
commit | 151836cea1737631c005e07ca9a26e7641ff009d (patch) | |
tree | 090220d9e325f851fb03102f9a4042735591871d /generic | |
parent | 56606ac70dec0e61009ec6ef2da57193abc0c33b (diff) | |
download | tcl-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')
-rw-r--r-- | generic/tclExecute.c | 4 |
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; |