diff options
author | Stefan Fritsch <sf@apache.org> | 2011-12-12 18:50:33 +0100 |
---|---|---|
committer | Stefan Fritsch <sf@apache.org> | 2011-12-12 18:50:33 +0100 |
commit | 91ce790cd3bda7b225671340c6637d345b688e74 (patch) | |
tree | fc63446ea3bf78a4f2b3b12d1e4c7d6428c7127e /include/util_varbuf.h | |
parent | Fix names of unary operators like '-s' being compared case insensitively. (diff) | |
download | apache2-91ce790cd3bda7b225671340c6637d345b688e74.tar.xz apache2-91ce790cd3bda7b225671340c6637d345b688e74.zip |
Limit length of lines in .htaccess to 8K again, to reduce DoS potential.
Make ap_varbuf_cfg_getline() strictly enforce the max_len parameter.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1213338 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/util_varbuf.h')
-rw-r--r-- | include/util_varbuf.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/util_varbuf.h b/include/util_varbuf.h index 24aa088ef0..cb5346f954 100644 --- a/include/util_varbuf.h +++ b/include/util_varbuf.h @@ -151,10 +151,8 @@ AP_DECLARE(apr_status_t) ap_varbuf_regsub(struct ap_varbuf *vb, /** Read a line from an ap_configfile_t into an ap_varbuf. * @param vb pointer to the ap_varbuf struct * @param cfg pointer to the ap_configfile_t - * @param max_len (soft) limit for the size of the buffer + * @param max_len maximum line length, including leading/trailing whitespace * @return see ap_cfg_getline() - * @note The buffer will not be grown once it has reached at least max_len - * bytes. This means that the returned line can be longer than max_len. * @note vb->strlen will be set to the length of the line */ AP_DECLARE(apr_status_t) ap_varbuf_cfg_getline(struct ap_varbuf *vb, |