]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
mod_substitute: Fix memory limitation in case of
authorRainer Jung <rjung@apache.org>
Sun, 28 Sep 2014 21:38:33 +0000 (21:38 +0000)
committerRainer Jung <rjung@apache.org>
Sun, 28 Sep 2014 21:38:33 +0000 (21:38 +0000)
commit60d09d9a2608229efa948006591ed731f487e7e0
treea0a57ee47a35baad792024f27c68f57089162013
parent015e5af3dea4e8f177539e2b8708af39619f8cee
mod_substitute: Fix memory limitation in case of
regexp plus flatten.

The maxlen argument of ap_varbuf_regsub() is unsigned.
Passing in "AP_SUBST_MAX_LINE_LENGTH - vb.strlen"
in case vb.strlen got to big didn't result in the
expected error but instead was handled as a very big
maxlen.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1628104 13f79535-47bb-0310-9956-ffa450edef68
modules/filters/mod_substitute.c