diff options
author | ph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069> | 2019-04-22 12:39:38 +0000 |
---|---|---|
committer | ph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069> | 2019-04-22 12:39:38 +0000 |
commit | a38f1e7eb827408133178ffac9987157d82edaa2 (patch) | |
tree | f22ee85db4366e13b24bed7639914d0f0b47e82b /testdata | |
parent | 79529e844054073c79292854e9ad6dab5410593d (diff) | |
download | pcre2-a38f1e7eb827408133178ffac9987157d82edaa2.tar.gz |
Implement a check on the number of capturing parentheses, which for some reason
has never existed. This fixes ClusterFuzz issue 14376.
git-svn-id: svn://vcs.exim.org/pcre2/code/trunk@1088 6239d852-aaf2-0410-a92c-79f79f948069
Diffstat (limited to 'testdata')
-rw-r--r-- | testdata/testinput11 | 2 | ||||
-rw-r--r-- | testdata/testinput2 | 4 | ||||
-rw-r--r-- | testdata/testinput9 | 2 | ||||
-rw-r--r-- | testdata/testoutput11-16 | 3 | ||||
-rw-r--r-- | testdata/testoutput11-32 | 2 | ||||
-rw-r--r-- | testdata/testoutput2 | 6 | ||||
-rw-r--r-- | testdata/testoutput9 | 3 |
7 files changed, 22 insertions, 0 deletions
diff --git a/testdata/testinput11 b/testdata/testinput11 index 2d267d6..fca6042 100644 --- a/testdata/testinput11 +++ b/testdata/testinput11 @@ -368,4 +368,6 @@ abÿAz ab\x{80000041}z +/\[()]{65535}/expand + # End of testinput11 diff --git a/testdata/testinput2 b/testdata/testinput2 index 9e59b62..8a98f94 100644 --- a/testdata/testinput2 +++ b/testdata/testinput2 @@ -5587,4 +5587,8 @@ a)"xI \= Expect error message abc\=null_context +/\[()]{65535}()/expand + +/\[()]{65535}(?<A>)/expand + # End of testinput2 diff --git a/testdata/testinput9 b/testdata/testinput9 index 7be4b15..792d610 100644 --- a/testdata/testinput9 +++ b/testdata/testinput9 @@ -260,4 +260,6 @@ /(*:*++++++++++++''''''''''''''''''''+''+++'+++x+++++++++++++++++++++++++++++++++++(++++++++++++++++++++:++++++%++:''''''''''''''''''''''''+++++++++++++++++++++++++++++++++++++++++++++++++++++-++++++++k+++++++''''+++'+++++++++++++++++++++++''''++++++++++++':Æ¿)/ +/\[()]{65535}/expand + # End of testinput9 diff --git a/testdata/testoutput11-16 b/testdata/testoutput11-16 index 78bf7fb..f2b9637 100644 --- a/testdata/testoutput11-16 +++ b/testdata/testoutput11-16 @@ -661,4 +661,7 @@ Subject length lower bound = 1 abÿAz ab\x{80000041}z +/\[()]{65535}/expand +Failed: error 120 at offset 131070: regular expression is too large + # End of testinput11 diff --git a/testdata/testoutput11-32 b/testdata/testoutput11-32 index 4b00384..1908ab7 100644 --- a/testdata/testoutput11-32 +++ b/testdata/testoutput11-32 @@ -667,4 +667,6 @@ Subject length lower bound = 1 ab\x{80000041}z 0: ab\x{80000041}z +/\[()]{65535}/expand + # End of testinput11 diff --git a/testdata/testoutput2 b/testdata/testoutput2 index 2f91c38..158fbad 100644 --- a/testdata/testoutput2 +++ b/testdata/testoutput2 @@ -16934,6 +16934,12 @@ Subject length lower bound = 0 abc\=null_context ** Replacement callouts are not supported with null_context. +/\[()]{65535}()/expand +Failed: error 197 at offset 131071: too many capturing groups (maximum 65535) + +/\[()]{65535}(?<A>)/expand +Failed: error 197 at offset 131075: too many capturing groups (maximum 65535) + # End of testinput2 Error -70: PCRE2_ERROR_BADDATA (unknown error number) Error -62: bad serialized data diff --git a/testdata/testoutput9 b/testdata/testoutput9 index f98f276..f66ca3d 100644 --- a/testdata/testoutput9 +++ b/testdata/testoutput9 @@ -367,4 +367,7 @@ Failed: error 134 at offset 14: character code point value in \x{} or \o{} is to /(*:*++++++++++++''''''''''''''''''''+''+++'+++x+++++++++++++++++++++++++++++++++++(++++++++++++++++++++:++++++%++:''''''''''''''''''''''''+++++++++++++++++++++++++++++++++++++++++++++++++++++-++++++++k+++++++''''+++'+++++++++++++++++++++++''''++++++++++++':Æ¿)/ Failed: error 176 at offset 259: name is too long in (*MARK), (*PRUNE), (*SKIP), or (*THEN) +/\[()]{65535}/expand +Failed: error 120 at offset 131070: regular expression is too large + # End of testinput9 |