diff options
| author | Miguel Sofer <miguel.sofer@gmail.com> | 2005-02-10 19:03:59 (GMT) |
|---|---|---|
| committer | Miguel Sofer <miguel.sofer@gmail.com> | 2005-02-10 19:03:59 (GMT) |
| commit | 3864c6421514e7678a085cd9ed982c5cb7c333be (patch) | |
| tree | 56b0fd7c53bd90836dc69af2cc9e86a1bee077de | |
| parent | e95727cf324a61f619a274f3822a90e723e64cda (diff) | |
| download | tcl-3864c6421514e7678a085cd9ed982c5cb7c333be.zip tcl-3864c6421514e7678a085cd9ed982c5cb7c333be.tar.gz tcl-3864c6421514e7678a085cd9ed982c5cb7c333be.tar.bz2 | |
added comments
| -rw-r--r-- | generic/tclBasic.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/generic/tclBasic.c b/generic/tclBasic.c index ea3bdf8..f61fc6a 100644 --- a/generic/tclBasic.c +++ b/generic/tclBasic.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: tclBasic.c,v 1.75.2.12 2005/02/10 18:58:35 msofer Exp $ + * RCS: @(#) $Id: tclBasic.c,v 1.75.2.13 2005/02/10 19:03:59 msofer Exp $ */ #include "tclInt.h" @@ -4011,6 +4011,11 @@ Tcl_EvalObjEx(interp, objPtr, flags) objv = (Tcl_Obj **) ckalloc(objc*sizeof(Tcl_Obj *)); } #undef TEOE_PREALLOC + /* + * Copy the list elements here, to avoid a segfault if objPtr + * loses its List internal rep [Bug 1119369] + */ + for (i=0; i < objc; i++) { objv[i] = listRepPtr->elements[i]; Tcl_IncrRefCount(objv[i]); |
