summaryrefslogtreecommitdiffstats
path: root/server/util_expr_parse.y
diff options
context:
space:
mode:
authorStefan Fritsch <sf@apache.org>2011-08-13 11:59:43 +0200
committerStefan Fritsch <sf@apache.org>2011-08-13 11:59:43 +0200
commit8281a318cfa1f8a88960beae2ea3b37400f461aa (patch)
tree3062e424efe517ed8b891e87331228cc56dc0697 /server/util_expr_parse.y
parentActually commit the header added in r1157354 (diff)
downloadapache2-8281a318cfa1f8a88960beae2ea3b37400f461aa.tar.xz
apache2-8281a318cfa1f8a88960beae2ea3b37400f461aa.zip
Do proper length checks in the expression scanner. This allows to remove the
8K length limit for expressions. Strings/Regexs in an expression are still limited to 8K, though. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1157362 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'server/util_expr_parse.y')
-rw-r--r--server/util_expr_parse.y1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/util_expr_parse.y b/server/util_expr_parse.y
index 59dea8aa88..6ba19dd9c4 100644
--- a/server/util_expr_parse.y
+++ b/server/util_expr_parse.y
@@ -152,6 +152,7 @@ words : word { $$ = ap_expr_make(op_ListElement, $1,
string : string strpart { $$ = ap_expr_make(op_Concat, $1, $2, ctx); }
| strpart { $$ = $1; }
+ | T_ERROR { YYABORT; }
;
strpart : T_STRING { $$ = ap_expr_make(op_String, $1, NULL, ctx); }