]> granicus.if.org Git - apache/commit
Limit recursion in ap_expr evaluation to avoid unbounded stack usage
authorStefan Fritsch <sf@apache.org>
Sat, 19 Nov 2011 21:58:48 +0000 (21:58 +0000)
committerStefan Fritsch <sf@apache.org>
Sat, 19 Nov 2011 21:58:48 +0000 (21:58 +0000)
commit92663b1e32722d89c3255920625329f58b3cdb78
treed21f70945d7827f9adeabbdd696e2666f14dc6e4
parent045be684020564dbb4cc6a43ea55b752a080715b
Limit recursion in ap_expr evaluation to avoid unbounded stack usage
* evaluate chains of ||, &&, and string concatenation non-recursively
* limit other types of recursion to 20 levels
* avoid some string copies if concatenating more than 2 strings

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1204087 13f79535-47bb-0310-9956-ffa450edef68
include/ap_expr.h
include/ap_mmn.h
server/util_expr_eval.c
server/util_expr_parse.c
server/util_expr_parse.y