summaryrefslogtreecommitdiffstats
path: root/tests/regexp.test
diff options
context:
space:
mode:
authordgp@users.sourceforge.net <dgp>2007-11-15 21:38:49 (GMT)
committerdgp@users.sourceforge.net <dgp>2007-11-15 21:38:49 (GMT)
commit412fb2be88a9c11ed0a10c92839dfda067be11f6 (patch)
tree3ef115aa857c83be56bd4c069f77af10b15a7b6c /tests/regexp.test
parent870a87cfb40043ca76ecf8baaa6ccf029604739b (diff)
downloadtcl-412fb2be88a9c11ed0a10c92839dfda067be11f6.zip
tcl-412fb2be88a9c11ed0a10c92839dfda067be11f6.tar.gz
tcl-412fb2be88a9c11ed0a10c92839dfda067be11f6.tar.bz2
* generic/regc_nfa.c: Fixed infinite loop in the regexp compiler.
[Bug 1810038].
Diffstat (limited to 'tests/regexp.test')
-rw-r--r--tests/regexp.test7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/regexp.test b/tests/regexp.test
index 03efa04..d0413c8 100644
--- a/tests/regexp.test
+++ b/tests/regexp.test
@@ -11,7 +11,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: regexp.test,v 1.27 2005/05/10 18:35:23 kennykb Exp $
+# RCS: @(#) $Id: regexp.test,v 1.28 2007/11/15 21:38:50 dgp Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2
@@ -655,6 +655,11 @@ test regexp-21.13 {multiple matches handle newlines} {
} {{0 -1} {2 1} {4 3}}
+test regexp-22.1 {Bug 1810038} {
+ regexp ($|^X)* {}
+} 1
+
+
# cleanup
::tcltest::cleanupTests
return