summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhobbs <hobbs>2000-04-04 08:04:41 (GMT)
committerhobbs <hobbs>2000-04-04 08:04:41 (GMT)
commit48e18ca0cc7a2edcc8320b4e33e31faaa768a64a (patch)
tree9bbe1663f82d64c5d7e2e960bef62a05f171a0bf
parenteba90b9b52a8773b35c265bebaa0dabffad1c3ba (diff)
downloadtcl-48e18ca0cc7a2edcc8320b4e33e31faaa768a64a.zip
tcl-48e18ca0cc7a2edcc8320b4e33e31faaa768a64a.tar.gz
tcl-48e18ca0cc7a2edcc8320b4e33e31faaa768a64a.tar.bz2
* generic/tclCmdIL.c (InfoVarsCmd): checked for non-NULL procPtr
to prevent itcl info override crash [Bug: 4064]
-rw-r--r--generic/tclCmdIL.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclCmdIL.c b/generic/tclCmdIL.c
index 32567a9..24f0642 100644
--- a/generic/tclCmdIL.c
+++ b/generic/tclCmdIL.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: tclCmdIL.c,v 1.23 2000/01/26 03:37:40 hobbs Exp $
+ * RCS: @(#) $Id: tclCmdIL.c,v 1.24 2000/04/04 08:04:41 hobbs Exp $
*/
#include "tclInt.h"
@@ -1836,7 +1836,7 @@ InfoVarsCmd(dummy, interp, objc, objv)
entryPtr = Tcl_NextHashEntry(&search);
}
}
- } else {
+ } else if (((Interp *)interp)->varFramePtr->procPtr != NULL) {
AppendLocals(interp, listPtr, simplePattern, 1);
}