Eric Covener
65b8fb947b
limit mod_sed memory use
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1901506 13f79535-47bb-0310-9956-ffa450edef68
2022-06-01 12:40:09 +00:00
Yann Ylavic
8926bb1dc4
mod_sed: use size_t to allow for larger buffer sizes and unsigned arithmetics.
...
Let's switch to apr_size_t buffers and get rid of the ints.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1898690 13f79535-47bb-0310-9956-ffa450edef68
2022-03-07 14:16:22 +00:00
Christophe Jaillet
045ddad34d
Use 'memcpy' instead of 'strcpy' when the size of the string has already been computed.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1749403 13f79535-47bb-0310-9956-ffa450edef68
2016-06-20 21:08:43 +00:00
Christophe Jaillet
dfbe86bda0
Style only
...
Be more consistent:
- add space between (if|while) and \(
- place of 'break ' statement
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1749402 13f79535-47bb-0310-9956-ffa450edef68
2016-06-20 21:07:26 +00:00
Christophe Jaillet
add4f525ef
Fix 'x' command processing in mod_sed.
...
This has been tested using a slighly modified example taken from:
https://blogs.oracle.com/basant/entry/using_mod_sed_to_filter
(OutputSed "s/.\*//" has been changed in OutputSed "s/.*//")
OutputSed "/Sunday/ {"
OutputSed "h"
OutputSed "s/.*//"
OutputSed "N"
OutputSed "s/\^.//"
OutputSed "/Monday/ {"
OutputSed "x"
OutputSed "s/Sunday/Monday/"
OutputSed "x"
OutputSed "s/Monday/Tuesday/"
OutputSed "H"
OutputSed "g"
OutputSed "}"
OutputSed "}"
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1749401 13f79535-47bb-0310-9956-ffa450edef68
2016-06-20 21:03:07 +00:00
Joe Orton
87309c7e79
* modules/filters/sed1.c: Mark private globals as static const.
...
(command): Change p3 pointer to const.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1326984 13f79535-47bb-0310-9956-ffa450edef68
2012-04-17 08:13:15 +00:00
Stefan Fritsch
1951a037bf
More cleanup: Expand tabs and some more indentation fixes
...
No functional change
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1174929 13f79535-47bb-0310-9956-ffa450edef68
2011-09-23 18:08:42 +00:00
Jim Jagielski
427c85bd23
Cleanup effort in prep for GA push:
...
Trim trailing whitespace... no func change
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1174751 13f79535-47bb-0310-9956-ffa450edef68
2011-09-23 13:39:32 +00:00
Ruediger Pluem
5f9bd3e7c8
* Reduce memory consumption when processing very long lines by at least
...
doubleing the size of the new buffer each time.
PR: 48024
Submitted by: Basant Kumar Kukreja <basant.kukreja sun.com>
Reviewed by: rpluem
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@826772 13f79535-47bb-0310-9956-ffa450edef68
2009-10-19 19:22:55 +00:00
Nick Kew
42cb513a13
Fix r729438 to commit the right version of the patch, dammit!
...
Basant's real patch to optimise mod_sed throughput
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@729439 13f79535-47bb-0310-9956-ffa450edef68
2008-12-25 20:40:01 +00:00
Ruediger Pluem
6bb66e6efa
* Replace control characters in output strings with more pleasant strings.
...
Submitted by: Basant Kumar kukreja <Basant.Kukreja Sun.COM>
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@694431 13f79535-47bb-0310-9956-ffa450edef68
2008-09-11 19:29:06 +00:00
Nick Kew
fd09d538dc
Commit mod_sed: enable filtering of HTTP Requests and Responses through sed
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@691418 13f79535-47bb-0310-9956-ffa450edef68
2008-09-02 23:01:47 +00:00