summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiguel Sofer <miguel.sofer@gmail.com>2002-06-18 13:22:21 (GMT)
committerMiguel Sofer <miguel.sofer@gmail.com>2002-06-18 13:22:21 (GMT)
commita14f6d151797cd7cbdc413d2f7f338b3d4757836 (patch)
treec1133b84068f4a2c937dd2ed39cac38e8b527950
parent53accc2f4b69e7f0ef7b626635ff6ad451afe4ae (diff)
downloadtcl-a14f6d151797cd7cbdc413d2f7f338b3d4757836.zip
tcl-a14f6d151797cd7cbdc413d2f7f338b3d4757836.tar.gz
tcl-a14f6d151797cd7cbdc413d2f7f338b3d4757836.tar.bz2
generic/tclExecute.c (TEBC, INST_DONE): small bug in the panic code
for tcl-stack corruption.
-rw-r--r--ChangeLog5
-rw-r--r--generic/tclExecute.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 0d7ce42..98925f8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-06-18 Miguel Sofer <msofer@users.sourceforge.net>
+
+ * generic/tclExecute.c (TEBC, INST_DONE): small bug in the panic
+ code for tcl-stack corruption.
+
2002-06-17 David Gravereaux <davygrvy@pobox.com>
Trims to support the removal of RESOURCE_INCLUDED from rc
diff --git a/generic/tclExecute.c b/generic/tclExecute.c
index f5949af..2a340f0 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.70 2002/06/17 22:52:51 hobbs Exp $
+ * RCS: @(#) $Id: tclExecute.c,v 1.71 2002/06/18 13:22:21 msofer Exp $
*/
#include "tclInt.h"
@@ -1079,6 +1079,7 @@ TclExecuteByteCode(interp, codePtr)
switch (*pc) {
case INST_DONE:
if (stackTop <= initStackTop) {
+ stackTop--;
goto abnormalReturn;
}