diff options
author | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2015-02-08 18:00:45 +0000 |
---|---|---|
committer | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2015-02-08 18:00:45 +0000 |
commit | 202d68f6b352b677952961187b54d62ae3b89722 (patch) | |
tree | 24e41c797828111805dc502d368ae8969be234b8 /testdata | |
parent | 39cae36af8f12dc6765f6c0a6395356c7cd2921e (diff) | |
download | pcre-202d68f6b352b677952961187b54d62ae3b89722.tar.gz |
Disallow quantification of assertions used as conditions.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1523 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'testdata')
-rw-r--r-- | testdata/testinput2 | 15 | ||||
-rw-r--r-- | testdata/testoutput2 | 21 |
2 files changed, 32 insertions, 4 deletions
diff --git a/testdata/testinput2 b/testdata/testinput2 index b08fd15..5907c71 100644 --- a/testdata/testinput2 +++ b/testdata/testinput2 @@ -4078,10 +4078,10 @@ backtracking verbs. --/ /\x{whatever}/ -"((?=(?(?=(?(?=(?(?=())))*)))))" +"((?=(?(?=(?(?=(?(?=()))))))))" a -"(?(?=)?==)(((((((((?=)))))))))" +"(?(?=)==)(((((((((?=)))))))))" a /^(?:(a)|b)(?(1)A|B)/I @@ -4102,4 +4102,15 @@ backtracking verbs. --/ /(?<N111>(?J)(?<N111>1(111111)11|)1|1|)(?(<N111>)1)/ +/(?(?=0)?)+/ + +/(?(?=0)(?=00)?00765)/ + 00765 + +/(?(?=0)(?=00)?00765|(?!3).56)/ + 00765 + 456 + ** Failers + 356 + /-- End of testinput2 --/ diff --git a/testdata/testoutput2 b/testdata/testoutput2 index e9481b4..24cbaa1 100644 --- a/testdata/testoutput2 +++ b/testdata/testoutput2 @@ -14224,13 +14224,13 @@ Failed: digits missing in \x{} or \o{} at offset 3 /\x{whatever}/ Failed: non-hex character in \x{} (closing brace missing?) at offset 3 -"((?=(?(?=(?(?=(?(?=())))*)))))" +"((?=(?(?=(?(?=(?(?=()))))))))" a 0: 1: 2: -"(?(?=)?==)(((((((((?=)))))))))" +"(?(?=)==)(((((((((?=)))))))))" a No match @@ -14275,4 +14275,21 @@ Matched, but too many substrings /(?<N111>(?J)(?<N111>1(111111)11|)1|1|)(?(<N111>)1)/ +/(?(?=0)?)+/ +Failed: nothing to repeat at offset 7 + +/(?(?=0)(?=00)?00765)/ + 00765 + 0: 00765 + +/(?(?=0)(?=00)?00765|(?!3).56)/ + 00765 + 0: 00765 + 456 + 0: 456 + ** Failers +No match + 356 +No match + /-- End of testinput2 --/ |