summaryrefslogtreecommitdiff
path: root/testdata
diff options
context:
space:
mode:
authorph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2015-05-08 16:39:40 +0000
committerph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2015-05-08 16:39:40 +0000
commit67286d4e31be9cdeef981955efbdf6ec9da53f42 (patch)
tree3ddf72a97d4793052e4a1ea50133944918702cf7 /testdata
parenta7776283693e2fd9034c5dc64edb2dedf2f7b4c6 (diff)
downloadpcre-67286d4e31be9cdeef981955efbdf6ec9da53f42.tar.gz
Fix buffer overflow for repeated conditional when referencing a duplicate name.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1557 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'testdata')
-rw-r--r--testdata/testinput26
-rw-r--r--testdata/testoutput26
2 files changed, 12 insertions, 0 deletions
diff --git a/testdata/testinput2 b/testdata/testinput2
index 1785b17..b7cec5a 100644
--- a/testdata/testinput2
+++ b/testdata/testinput2
@@ -4160,4 +4160,10 @@ backtracking verbs. --/
/\V\x85\9*+((?2)\3++()2)*:2/
+/(((?(R)){0,2}) (?''((?'R')((?'R')))))/J
+
+/(((?(X)){0,2}) (?''((?'X')((?'X')))))/J
+
+/(((?(R)){0,2}) (?''((?'X')((?'R')))))/
+
/-- End of testinput2 --/
diff --git a/testdata/testoutput2 b/testdata/testoutput2
index 821c0ce..dcc4380 100644
--- a/testdata/testoutput2
+++ b/testdata/testoutput2
@@ -14448,4 +14448,10 @@ Failed: reference to non-existent subpattern at offset 22
/\V\x85\9*+((?2)\3++()2)*:2/
Failed: reference to non-existent subpattern at offset 26
+/(((?(R)){0,2}) (?''((?'R')((?'R')))))/J
+
+/(((?(X)){0,2}) (?''((?'X')((?'X')))))/J
+
+/(((?(R)){0,2}) (?''((?'X')((?'R')))))/
+
/-- End of testinput2 --/