]> granicus.if.org Git - apache/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)
commit358075baa36bac30a10cd0c4f7b0c5b8a22b5c84
treea0a57ee47a35baad792024f27c68f57089162013
parentaca665c2347e1e1c70099b24445af9f3538aaac7
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