summaryrefslogtreecommitdiff
path: root/testdata
diff options
context:
space:
mode:
authorph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2007-08-15 11:34:14 +0000
committerph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2007-08-15 11:34:14 +0000
commit7cce021bdc8680d5fea06e741c1581b4b49d3e97 (patch)
tree794b2c47f5256099a5a8ac6345f1f1a1cb4077a8 /testdata
parentb16e178b28a1f1a43d831648d8836a1de092339c (diff)
downloadpcre-7cce021bdc8680d5fea06e741c1581b4b49d3e97.tar.gz
Add integer overflow tests to escape processing.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@213 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'testdata')
-rw-r--r--testdata/testinput26
-rw-r--r--testdata/testoutput217
2 files changed, 19 insertions, 4 deletions
diff --git a/testdata/testinput2 b/testdata/testinput2
index 4c32c2b..612aa7e 100644
--- a/testdata/testinput2
+++ b/testdata/testinput2
@@ -2408,4 +2408,10 @@ a random value. /Ix
/a(*MARK)b/
+/(?i:A{1,}\6666666666)/
+
+/\g6666666666/
+
+/[\g6666666666]/
+
/ End of testinput2 /
diff --git a/testdata/testoutput2 b/testdata/testoutput2
index 2f137c9..ee00528 100644
--- a/testdata/testoutput2
+++ b/testdata/testoutput2
@@ -8064,16 +8064,16 @@ No match
2: b
/^(a)\g-2/
-Failed: reference to non-existent subpattern at offset 4
+Failed: reference to non-existent subpattern at offset 7
/^(a)\g/
-Failed: \g is not followed by a braced name or an optionally braced non-zero number at offset 4
+Failed: \g is not followed by a braced name or an optionally braced non-zero number at offset 5
/^(a)\g{0}/
-Failed: \g is not followed by a braced name or an optionally braced non-zero number at offset 4
+Failed: \g is not followed by a braced name or an optionally braced non-zero number at offset 7
/^(a)\g{3/
-Failed: \g is not followed by a braced name or an optionally braced non-zero number at offset 4
+Failed: \g is not followed by a braced name or an optionally braced non-zero number at offset 8
/^(a)\g{4a}/
Failed: reference to non-existent subpattern at offset 9
@@ -9035,4 +9035,13 @@ Failed: (*VERB) with an argument is not supported at offset 8
/a(*MARK)b/
Failed: (*VERB) not recognized at offset 7
+/(?i:A{1,}\6666666666)/
+Failed: number is too big at offset 19
+
+/\g6666666666/
+Failed: number is too big at offset 11
+
+/[\g6666666666]/
+Failed: number is too big at offset 12
+
/ End of testinput2 /