summaryrefslogtreecommitdiffstats
path: root/include/util_varbuf.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix typo spotted by Mike RumphChristophe Jaillet2014-07-171-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1611481 13f79535-47bb-0310-9956-ffa450edef68
* Improve doxygen comment.Christophe Jaillet2014-07-171-61/+71
| | | | | | | | Improve layout, add trailing '.' in function description, capitalize first letter of description, fix typo, turn \0 into \\0. Move the detailed description after @defgroup so that it is taken into account. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1611252 13f79535-47bb-0310-9956-ffa450edef68
* fix Doxygen warnings/commentsJeff Trawick2013-08-131-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1513461 13f79535-47bb-0310-9956-ffa450edef68
* make varbuf functions treat AP_VARBUF_UNKNOWN consistently, improve docsStefan Fritsch2012-07-101-10/+30
| | | | | | | | | | | | | | | | | ap_varbuf_pdup(): copying the whole buffer in case strlen == AP_VARBUF_UNKNOWN does not make sense as the caller can not set the exact buffer size, only a minimum. No API change as previously the behavior with AP_VARBUF_UNKNOWN was undocumented. regsub_core(): Checking for vb->buf is useless, it cannot be NULL unless ap_varbuf_init has not been called. ap_varbuf_cfg_getline(): Initially, allocate enough memory to hold an empty line. If strlen == AP_VARBUF_UNKNOWN, use strlen(buf) instead of undefined behavior. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1359884 13f79535-47bb-0310-9956-ffa450edef68
* Clean up size_t abuse, part 2. ap_malloc/calloc/realloc are explicitlyWilliam A. Rowe Jr2012-01-061-1/+2
| | | | | | | | | excluded from this cleanup as they must be signature identical to the clib functions, and although the definition of size_t has been flakey, the definition of those functions appears to be generally clean since ANSI C. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1228323 13f79535-47bb-0310-9956-ffa450edef68
* Limit length of lines in .htaccess to 8K again, to reduce DoS potential.Stefan Fritsch2011-12-121-3/+1
| | | | | | | 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
* * include/util_varbuf.h: Doxygen tweaks.Joe Orton2011-12-071-1/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1211351 13f79535-47bb-0310-9956-ffa450edef68
* Improve handling of maxlen = APR_SIZE_MAX, noticed by Jim.Stefan Fritsch2011-10-271-1/+1
| | | | | | | Use apr_pregsub_ex() and maxlen = 0 for unlimited in mod_substitute. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1189985 13f79535-47bb-0310-9956-ffa450edef68
* Limit ap_pregsub() to 64K, add ap_pregsub_ex() for longer strings and withStefan Fritsch2011-10-261-3/+7
| | | | | | | | better error reporting. Modify ap_varbuf_regsub() to be similar to ap_pregsub_ex(). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1188950 13f79535-47bb-0310-9956-ffa450edef68
* Some varbuf enhancements:Stefan Fritsch2011-09-261-1/+37
| | | | | | | | | | - Introduce new ap_varbuf_pdup() and ap_varbuf_regsub() functions. - Fix some bugs in ap_varbuf_strmemcat(). - Make ap_varbuf.buf point to an empty string if no buffer has been allocated, yet. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1176018 13f79535-47bb-0310-9956-ffa450edef68
* Actually commit the header added in r1157354Stefan Fritsch2011-08-131-0/+127
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1157361 13f79535-47bb-0310-9956-ffa450edef68