From b694e6b4fab8a3ac24df527d0ce9d9089c215316 Mon Sep 17 00:00:00 2001 From: dgp Date: Sat, 21 Mar 2009 02:55:48 +0000 Subject: * tests/stringObj.test: Test stringObj-6.9 checks that Tcl_AppendStringsToObj() no longer crashes when operating on a pure unicode value. [Bug 2597185] --- ChangeLog | 4 ++++ tests/stringObj.test | 8 +++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 214fc02..0d95bad 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,10 @@ 2009-03-20 Don Porter + * tests/stringObj.test: Test stringObj-6.9 checks that + Tcl_AppendStringsToObj() no longer crashes when operating on a + pure unicode value. [Bug 2597185] + * generic/tclExecute.c (INST_CONCAT1): Panic when appends overflow the max length of a Tcl value. [Bug 2669109] diff --git a/tests/stringObj.test b/tests/stringObj.test index 057d8e8..921deef 100644 --- a/tests/stringObj.test +++ b/tests/stringObj.test @@ -12,7 +12,7 @@ # See the file "license.terms" for information on usage and redistribution of # this file, and for a DISCLAIMER OF ALL WARRANTIES. # -# RCS: @(#) $Id: stringObj.test,v 1.21 2009/02/17 17:17:32 dgp Exp $ +# RCS: @(#) $Id: stringObj.test,v 1.22 2009/03/21 02:55:49 dgp Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest @@ -161,6 +161,12 @@ test stringObj-6.8 {Tcl_AppendStringsToObj procedure, object totally empty} test teststringobj appendstrings 1 {} list [teststringobj length2 1] [teststringobj get 1] } {0 {}} +test stringObj-6.9 {Tcl_AppendStringToObj, pure unicode} testobj { + testobj freeallvars + teststringobj set2 1 [string replace abc 1 1 d] + teststringobj appendstrings 1 foo bar soom + teststringobj get 1 +} adcfoobarsoom test stringObj-7.1 {SetStringFromAny procedure} testobj { testobj freeallvars -- cgit v0.12