summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2013-02-15 14:30:44 (GMT)
committerdgp <dgp@users.sourceforge.net>2013-02-15 14:30:44 (GMT)
commitb12908345e9ef71275b47409f0cec91af99c2530 (patch)
treecd68e19b8f1450a2d30e5b79eb5d2103a675c402 /tests
parent00e736695a8c441fd7613f99a6a67fc101302477 (diff)
parent46df7f7566778f6e653d25f063fc6a57649e36a6 (diff)
downloadtcl-b12908345e9ef71275b47409f0cec91af99c2530.zip
tcl-b12908345e9ef71275b47409f0cec91af99c2530.tar.gz
tcl-b12908345e9ef71275b47409f0cec91af99c2530.tar.bz2
3604074 Fix regexp optimization to stop hanging on the expression
((((((((a)*)*)*)*)*)*)*)* . Thanks to Bjørn Grathwohl for discovery.
Diffstat (limited to 'tests')
-rw-r--r--tests/regexp.test5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/regexp.test b/tests/regexp.test
index 70ee47e..a7b81b2 100644
--- a/tests/regexp.test
+++ b/tests/regexp.test
@@ -630,7 +630,10 @@ test regexp-21.13 {multiple matches handle newlines} {
test regexp-22.1 {Bug 1810038} {
regexp ($|^X)* {}
} 1
-
+test regexp-22.2 {Bug 3604074} {
+ # This will hang in interps where the bug is not fixed
+ regexp ((((((((a)*)*)*)*)*)*)*)* a
+} 1
# cleanup
::tcltest::cleanupTests