summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2016-03-20 20:42:26 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2016-03-20 20:42:26 (GMT)
commit0aecb943f5d14659cbcee9ca6733c69744ffabe1 (patch)
tree091f9fd81e52275d399e2762e077201f3f8d4992 /tests
parent40526e0d3a5b496eb7566e47ec87a44920ea1ba5 (diff)
parent01d1cdb5e8789884ae310c5e38fb976559157460 (diff)
downloadtcl-0aecb943f5d14659cbcee9ca6733c69744ffabe1.zip
tcl-0aecb943f5d14659cbcee9ca6733c69744ffabe1.tar.gz
tcl-0aecb943f5d14659cbcee9ca6733c69744ffabe1.tar.bz2
[1af8de570511] Fix crash in [string replace] caused by cut-n-paste.
Diffstat (limited to 'tests')
-rw-r--r--tests/stringComp.test10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/stringComp.test b/tests/stringComp.test
index a66525e..140a270 100644
--- a/tests/stringComp.test
+++ b/tests/stringComp.test
@@ -728,6 +728,16 @@ test stringComp-14.3 {Bug 0dca3bfa8f} {
expr {$arg ne $argCopy}
}} abcde
} 1
+test stringComp-14.4 {Bug 1af8de570511} {
+ apply {{x y} {
+ # Generate an unshared string value
+ set val ""
+ for { set i 0 } { $i < $x } { incr i } {
+ set val [format "0%s" $val]
+ }
+ string replace $val[unset val] 1 1 $y
+ }} 4 x
+} 0x00
## string tolower
## not yet bc