diff options
author | dgp <dgp@users.sourceforge.net> | 2009-04-15 19:07:04 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2009-04-15 19:07:04 (GMT) |
commit | 7ca17ffd2e527a94b2588fa43f774708d0c69191 (patch) | |
tree | be17f1afccd9825febecdd2216f6c47b60ce5012 | |
parent | fcc097bf7b3d1cb9f0c55b44b014eeec2b319846 (diff) | |
download | tcl-7ca17ffd2e527a94b2588fa43f774708d0c69191.zip tcl-7ca17ffd2e527a94b2588fa43f774708d0c69191.tar.gz tcl-7ca17ffd2e527a94b2588fa43f774708d0c69191.tar.bz2 |
* generic/tclStringObj.c: AppendUnicodeToUnicodeRep failedcore_8_5_7
to set stringPtr->allocated to 0, leading to crashes.
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | generic/tclStringObj.c | 3 |
2 files changed, 5 insertions, 1 deletions
@@ -2,6 +2,9 @@ *** 8.5.7 TAGGED FOR RELEASE *** + * generic/tclStringObj.c: AppendUnicodeToUnicodeRep failed + to set stringPtr->allocated to 0, leading to crashes. + * changes: Update for 8.5.7 release. 2009-04-14 Stuart Cassoff <stwo@users.sourceforge.net> diff --git a/generic/tclStringObj.c b/generic/tclStringObj.c index dc36242..a0992aa 100644 --- a/generic/tclStringObj.c +++ b/generic/tclStringObj.c @@ -33,7 +33,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclStringObj.c,v 1.70.2.11 2009/04/10 22:14:29 patthoyts Exp $ */ + * RCS: @(#) $Id: tclStringObj.c,v 1.70.2.12 2009/04/15 19:07:04 dgp Exp $ */ #include "tclInt.h" #include "tommath.h" @@ -1410,6 +1410,7 @@ AppendUnicodeToUnicodeRep( appendNumChars * sizeof(Tcl_UniChar)); stringPtr->unicode[numChars] = 0; stringPtr->numChars = numChars; + stringPtr->allocated = 0; Tcl_InvalidateStringRep(objPtr); } |