418fb8475268f6bcc30616ad598170bb5e65c5be 1631983 |
|
15-Oct-2014 |
rjung |
mod_substitute: No real functional change, but:
- define default for maximum line length
indepenent of MAX_STRING_LEN
- Clarify line length check with a comment
- add supported 'b' suffix to directive
description |
8af5a3bd941a25b28ff9c84c513d6aa9f48f2cdc 1628924 |
|
02-Oct-2014 |
rjung |
mod_substitute: Restrict configuration in .htaccess to
FileInfo as documented. |
42b6ba421855a65673ad46844a0be899e4ad9405 1628919 |
|
02-Oct-2014 |
rjung |
mod_substitute: Make maximum line length configurable. |
ed9df5c69cb725b563ddf402c69cc4cfbd418676 1628104 |
|
28-Sep-2014 |
rjung |
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. |
7619b51fca6ecf16c28389e52a666e82f3c8d3ef 1601624 |
|
10-Jun-2014 |
ylavic |
Strip useless apr_brigade_cleanup() calls. |
185aa71728867671e105178b4c66fbc22b65ae26 1209766 |
|
03-Dec-2011 |
sf |
Add lots of unique tags to error log messages |
cf87f72841a6707d4bcb47825650ce8dc9001f70 1199410 |
|
08-Nov-2011 |
sf |
Fix up some length limit calculation |
d7770f19a5790a568d7309ad183c985b8331ab36 1199060 |
|
08-Nov-2011 |
sf |
Add some comments and another line length check |
4949102d57ec054f5b66881f7cc3553751daff65 1198926 |
|
07-Nov-2011 |
sf |
Also do length check if the last line is not LF terminated |
592f5af70d715aa5c0fc686122fcf88d58397dc9 1197830 |
|
05-Nov-2011 |
sf |
re-add apr_pool_clear accidentally removed in r1197405 |
94bc56b747dda8afb8806d04e08164ea99e4c21d 1197405 |
|
04-Nov-2011 |
sf |
To prevent overboarding memory usage, limit line length to 1MB |
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(). |
067fc2710958d8d2a276cd8e54284a178d232a8b 1176019 |
|
26-Sep-2011 |
sf |
Make mod_substitute more efficient:
- Use varbuf resizable buffer instead of constantly allocating pool
memory and copying data around. This changes the memory requirement from
quadratic in ((number of substitutions in line) * (length of line)) to
linear in (length of line).
- Instead of copying buckets just to append a \0, use new ap_regexec_len()
function
PR: 50559 |
5bfaaf573bacb45c1cf290ce85ecc676587e8a64 1174751 |
|
23-Sep-2011 |
jim |
Cleanup effort in prep for GA push:
Trim trailing whitespace... no func change |
36ef8f77bffe75d1aa327882be1b5bdbe2ff567a 951895 |
|
06-Jun-2010 |
sf |
Use the new APLOG_USE_MODULE/AP_DECLARE_MODULE macros everywhere to take
advantage of per-module loglevels |
2db5d76ac4c75aadecf38e20569bccbfd2360ba7 757741 |
|
24-Mar-2009 |
rpluem |
* Fix a memory leak by freeing the memory consumed by the bucket.
PR: 44948
Submitted by: Dan Poirier <poirier pobox.com>
Reviewed by: rpluem |
6da2a930e5ea333345736d35904eefdd144e015e 755190 |
|
17-Mar-2009 |
rpluem |
* APR_BUCKET_NEXT is wrong here as we are already a doing a APR_BUCKET_NEXT in
the for loop and this causes us to jump *two* buckets forward. This can cause
us to jump over the Sentinel of the brigade and thus causes an endless loop. |
7897e255f85d6a781102f6216b9e81d98bc560c5 693728 |
|
10-Sep-2008 |
rpluem |
* Fix potential segfault if flags remains NULL. |
30a7aab8d06a32d5e95288cfb529b10d7f1ebca3 693727 |
|
10-Sep-2008 |
rpluem |
* Allow empty substitute patterns (to remove data from the stream), but
disallow empty search patterns. |
90251a54bb3ed50600f112b520b39c6a6333bffc 628864 |
|
18-Feb-2008 |
jim |
In the case where we have only 1 pattern, then we
can safely be quick, no matter what. |
ca33b922ae8ad1b24a8235b656b0ac6f82915355 627764 |
|
14-Feb-2008 |
jim |
Change default of mod_substitute to flattening...
Via current discussion on dev@httpd |
af0ae7e4ce6ff526c956f1df370f36d9e9c142b9 602533 |
|
08-Dec-2007 |
rpluem |
* s/MAX_BUCKETS/AP_MAX_BUCKETS/ to avoid namespace conflicts as pointed out
by jim. No functional change. |
af4e276219812004c201ee9246ba90000796b642 602469 |
|
08-Dec-2007 |
rpluem |
* Optimize memory behaviour of mod_substitute by
* Precreate all needed brigades, save them in the filter context and reuse
them in order to avoid frequent recreations using the request pool.
* Use a temporary pool for all the needed copy stuff and clean it up every
time we passed the passbb brigade down the chain. We can pass the
brigade down the chain directly after we processed one bucket from the
original brigade as buffering is done by the network filters.
* Use transient instead of pool buckets.
* There are cases that lead to the exceptional situation of a very large
passbb bucket brigade (about 1,000,000 buckets) as a result of processing
4 MB of a file. So I add a flush bucket once I have more than
MAX_BUCKET (1000) buckets in the brigade and pass it down the chain to get
it send and the passbb bucket brigade cleaned up and its memory reusable
again. |
c120be8a159401f7ed2cff5318d2976b803a16de 598651 |
|
27-Nov-2007 |
jim |
move mod_substitute from exp to filters |