]> 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 14:48:54 +0000 (14:48 +0000)
committerYann Ylavic <ylavic@apache.org>
Mon, 7 Mar 2022 14:48:54 +0000 (14:48 +0000)
commit5a72f0fe6f2f8ce35c45242e99a421dc19251ab5
tree41c793a9ab8e3e35d58c7bce40c333dfe2ecb2c9
parent19aa2d83b379719420f3a178413325156d7a62f3
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.

Merge r1898686 from trunk.
Submitted by: ylavic, rpluem
Reviewed by: ylavic, covener, rpluem

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1898693 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