summaryrefslogtreecommitdiff
path: root/testdata
diff options
context:
space:
mode:
authorph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2012-06-17 19:08:41 +0000
committerph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2012-06-17 19:08:41 +0000
commit37b4efccc0529613ee2c93004d33ef681c410a9f (patch)
tree488ac9efcee13934e6990762bd969181d192484e /testdata
parent9a61463ee5099a08610fb08ada15b3c8fc3e0ad5 (diff)
downloadpcre-37b4efccc0529613ee2c93004d33ef681c410a9f.tar.gz
Fix DFA bug (3 cases) when UTF code was being obeyed in non-UTF mode.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@979 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'testdata')
-rw-r--r--testdata/testinput811
-rw-r--r--testdata/testoutput820
2 files changed, 31 insertions, 0 deletions
diff --git a/testdata/testinput8 b/testdata/testinput8
index 2b628a3..e235445 100644
--- a/testdata/testinput8
+++ b/testdata/testinput8
@@ -4787,4 +4787,15 @@
/abcdef/
abc\R
+/<H((?(?!<H|F>)(.)|(?R))++)*F>/
+ text <H more text <H texting more hexA0-"\xA0" hex above 7F-"\xBC" F> text xxxxx <H text F> text F> text2 <H text sample F> more text.
+
+/^(?>.{4})abc|^\w\w.xabcd/
+ xxxxabcd
+ xx\xa0xabcd
+
+/^(.{4}){2}+abc|^\w\w.x\w\w\w\wabcd/
+ xxxxxxxxabcd
+ xx\xa0xxxxxabcd
+
/-- End of testinput8 --/
diff --git a/testdata/testoutput8 b/testdata/testoutput8
index c5f01e1..73e0eae 100644
--- a/testdata/testoutput8
+++ b/testdata/testoutput8
@@ -7996,4 +7996,24 @@ Partial match: \x0d\x0d\x0d
abc\R
Error -30 (invalid data in workspace for DFA restart)
+/<H((?(?!<H|F>)(.)|(?R))++)*F>/
+ text <H more text <H texting more hexA0-"\xA0" hex above 7F-"\xBC" F> text xxxxx <H text F> text F> text2 <H text sample F> more text.
+ 0: <H more text <H texting more hexA0-"\xa0" hex above 7F-"\xbc" F> text xxxxx <H text F> text F>
+
+/^(?>.{4})abc|^\w\w.xabcd/
+ xxxxabcd
+ 0: xxxxabcd
+ 1: xxxxabc
+ xx\xa0xabcd
+ 0: xx\xa0xabcd
+ 1: xx\xa0xabc
+
+/^(.{4}){2}+abc|^\w\w.x\w\w\w\wabcd/
+ xxxxxxxxabcd
+ 0: xxxxxxxxabcd
+ 1: xxxxxxxxabc
+ xx\xa0xxxxxabcd
+ 0: xx\xa0xxxxxabcd
+ 1: xx\xa0xxxxxabc
+
/-- End of testinput8 --/