]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
core: Make sure and check that LimitXMLRequestBody fits in system memory.
authorYann Ylavic <ylavic@apache.org>
Mon, 7 Mar 2022 13:36:10 +0000 (13:36 +0000)
committerYann Ylavic <ylavic@apache.org>
Mon, 7 Mar 2022 13:36:10 +0000 (13:36 +0000)
commit6418c66ab6bfa7aeebeca09b17cf69eeead3bfa1
tree477a4f458c1fddda3902e410c7ab698f66ba3ebb
parent0cb63842869cc2d9c02aba63c2122c685ac88d76
core: Make sure and check that LimitXMLRequestBody fits in system memory.

LimitXMLRequestBody can not exceed the size needed to ap_escape_html2() the
body without failing to allocate memory, so enforce this at load time based
on APR_SIZE_MAX, and make sure that ap_escape_html2() is within the bounds.

Document the limits for LimitXMLRequestBody in our docs.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1898686 13f79535-47bb-0310-9956-ffa450edef68
changes-entries/AP_MAX_LIMIT_XML_BODY.diff [new file with mode: 0644]
docs/manual/mod/core.xml
server/core.c
server/util.c
server/util_xml.c