History log of /httpd/include/util_varbuf.h
Revision Date Author Comments Expand
a3888aa66c841416bde645d3714fa6540daccacf 1611481 17-Jul-2014 jailletc36

Fix typo spotted by Mike Rumph

d45baca3dcd361f43bbe709eadbb29207609b32a 1611252 17-Jul-2014 jailletc36

Improve doxygen comment. 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.

89d55fe6a5e2f13c4e83a68bb4deadddf8616a8a 1513461 13-Aug-2013 trawick

fix Doxygen warnings/comments

886d55e313c02587932104534df2e294058dd369 1359884 10-Jul-2012 sf

make varbuf functions treat AP_VARBUF_UNKNOWN consistently, improve docs 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.

b02dfdb611f84136664b3c05e4d4d704aeabbf63 1228323 06-Jan-2012 wrowe

Clean up size_t abuse, part 2. ap_malloc/calloc/realloc are explicitly 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.

6f3d07d3152232d46eda8f3d97a511bcb1c82d3d 1213338 12-Dec-2011 sf

Limit length of lines in .htaccess to 8K again, to reduce DoS potential. Make ap_varbuf_cfg_getline() strictly enforce the max_len parameter.

c020add90009d5646b0fdba87db430878bbf5717 1211351 07-Dec-2011 jorton

* include/util_varbuf.h: Doxygen tweaks.

0f7233952e2732c08e1848a0209ab207d4ada35a 1189985 27-Oct-2011 sf

Improve handling of maxlen = APR_SIZE_MAX, noticed by Jim. Use apr_pregsub_ex() and maxlen = 0 for unlimited in mod_substitute.

cda2a8c4fe289419f62e8b9607cafe4812974840 1188950 26-Oct-2011 sf

Limit ap_pregsub() to 64K, add ap_pregsub_ex() for longer strings and with better error reporting. Modify ap_varbuf_regsub() to be similar to ap_pregsub_ex().

b125ec755c78472e8e5313f16e7ccb50382083e9 1176018 26-Sep-2011 sf

Some varbuf enhancements: - 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.

eaf6669b6ce9b9714e451d5cc81ba30c802c89fc 1157361 13-Aug-2011 sf

Actually commit the header added in r1157354