aboutsummaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorSébastien Marie <semarie@users.noreply.github.com>2015-06-23 12:03:53 +0200
committerSébastien Marie <semarie@users.noreply.github.com>2015-06-23 12:03:53 +0200
commit3873b23c53de31074d294d127077e691662150c2 (patch)
treee4192f889da259811fad4e4ab1a92620f1954116 /regress
parenta6ac783e163ccffbcd2d28627497a7bb31a9dd3b (diff)
downloadhttpd-3873b23c53de31074d294d127077e691662150c2.tar.gz
httpd-3873b23c53de31074d294d127077e691662150c2.zip
add a new control for repetitor items
- add a counter for limiting the search for repetitor items ('*', '+', '-' and '?') - add test case for this new kind of error
Diffstat (limited to 'regress')
-rw-r--r--regress/patterns/test-patterns.in4
-rw-r--r--regress/patterns/test-patterns.out12
2 files changed, 16 insertions, 0 deletions
diff --git a/regress/patterns/test-patterns.in b/regress/patterns/test-patterns.in
index 46aa506..5abef1f 100644
--- a/regress/patterns/test-patterns.in
+++ b/regress/patterns/test-patterns.in
@@ -21,3 +21,7 @@ xxxx ^x*$ same as before
/page/51 ()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()() too many captures
/page/51 /page/%f missing '[' after '%f' in pattern
/page/51 /page%f/51 missing '[' after '%f' in pattern
+q********************************* *************************************q max repetition items
+q+++++++++++++++++++++++++++++++++ +++++++++++++++++++++++++++++++++++++q max repetition items
+q--------------------------------- -------------------------------------q max repetition items
+q????????????????????????????????? ?????????????????????????????????????q max repetition items
diff --git a/regress/patterns/test-patterns.out b/regress/patterns/test-patterns.out
index 1999cc1..aecb9f0 100644
--- a/regress/patterns/test-patterns.out
+++ b/regress/patterns/test-patterns.out
@@ -85,3 +85,15 @@ pattern='/page/%f'
patterns-tester: str_match: missing '[' after '%f' in pattern
string='/page/51'
pattern='/page%f/51'
+patterns-tester: str_match: max repetition items
+string='q*********************************'
+pattern='*************************************q'
+patterns-tester: str_match: max repetition items
+string='q+++++++++++++++++++++++++++++++++'
+pattern='+++++++++++++++++++++++++++++++++++++q'
+patterns-tester: str_match: max repetition items
+string='q---------------------------------'
+pattern='-------------------------------------q'
+patterns-tester: str_match: max repetition items
+string='q?????????????????????????????????'
+pattern='?????????????????????????????????????q'