aboutsummaryrefslogtreecommitdiff
path: root/httpd/patterns.h
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 /httpd/patterns.h
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 'httpd/patterns.h')
-rw-r--r--httpd/patterns.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/httpd/patterns.h b/httpd/patterns.h
index ddda0dd..6db5991 100644
--- a/httpd/patterns.h
+++ b/httpd/patterns.h
@@ -24,6 +24,7 @@
#define MAXCAPTURES 32 /* Max no. of allowed captures in pattern */
#define MAXCCALLS 200 /* Max recusion depth in pattern matching */
+#define MAXREPETITION 0xfffff /* Max for repetition items */
struct str_find {
off_t sm_so; /* start offset of match */