Impose a limit on the total length of the trailing headers.
authorkkolinko <kkolinko@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 22 Nov 2010 22:43:51 +0000 (22:43 +0000)
committerkkolinko <kkolinko@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 22 Nov 2010 22:43:51 +0000 (22:43 +0000)
commit9421f7d3d4e90ffa1049e0c410044ba90d89052e
treebcdea04ba37b5eb5aa1e0e12995a69fabcb41391
parentedc007fed5c08d635b1ec53da6974afc77ad960b
Impose a limit on the total length of the trailing headers.
Otherwise the ByteChunk buffer in the ChunkedInputFilter might grow unlimitedly.

Implemented as a system property. It might be better to implement it as an attribute of a connector (like maxPostSize and maxSavePostSize attributes are), but I am not sure that it is worth the effort.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1037924 13f79535-47bb-0310-9956-ffa450edef68
java/org/apache/coyote/Constants.java
java/org/apache/coyote/http11/filters/ChunkedInputFilter.java
test/org/apache/coyote/http11/filters/TestChunkedInputFilter.java
webapps/docs/changelog.xml
webapps/docs/config/systemprops.xml