diff options
author | dgp <dgp@noemail.net> | 2010-03-30 16:31:08 (GMT) |
---|---|---|
committer | dgp <dgp@noemail.net> | 2010-03-30 16:31:08 (GMT) |
commit | abeeffbc2760732d9917a762d0b96774af5dd0fe (patch) | |
tree | 27e19e52601b66a6d7de66e5d401b9f6c852b670 /generic/tclObj.c | |
parent | 9d903d3225c0c32a959f3c2c1a9c388fe4196596 (diff) | |
download | tcl-abeeffbc2760732d9917a762d0b96774af5dd0fe.zip tcl-abeeffbc2760732d9917a762d0b96774af5dd0fe.tar.gz tcl-abeeffbc2760732d9917a762d0b96774af5dd0fe.tar.bz2 |
* generic/tclObj.c (Tcl_GetCommandFromObj): [Bug 2979402]: Reorder
the validity tests on internal rep of a "cmdName" value to avoid
invalid reads reported by valgrind.
FossilOrigin-Name: f73bde5491a4e13b8bfb26803a55f2dca5e56af5
Diffstat (limited to 'generic/tclObj.c')
-rw-r--r-- | generic/tclObj.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclObj.c b/generic/tclObj.c index 8123213..f16cb66 100644 --- a/generic/tclObj.c +++ b/generic/tclObj.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: tclObj.c,v 1.171 2010/02/25 22:20:10 nijtmans Exp $ + * RCS: @(#) $Id: tclObj.c,v 1.172 2010/03/30 16:31:09 dgp Exp $ */ #include "tclInt.h" @@ -4139,8 +4139,8 @@ Tcl_GetCommandFromObj( register Command *cmdPtr = resPtr->cmdPtr; if ((cmdPtr->cmdEpoch == resPtr->cmdEpoch) - && (interp == cmdPtr->nsPtr->interp) && !(cmdPtr->flags & CMD_IS_DELETED) + && (interp == cmdPtr->nsPtr->interp) && !(cmdPtr->nsPtr->flags & NS_DYING)) { register Namespace *refNsPtr = (Namespace *) TclGetCurrentNamespace(interp); |