1
0
mirror of https://github.com/apache/httpd.git synced 2025-04-18 22:24:07 +03:00

11 Commits

Author SHA1 Message Date
Giovanni Bechis
24007faa4f Fix possible NULL pointer dereference casued by apreq_param_make()
The function apreq_param_make() will return NULL on failure. However
NULL check are forgetten before derenference, which could lead to
NULL pointer dereference.

Adding NULL check to all use of apreq_param_make().

Submitted by: Zhou Qingyang <zhou1615@umn.edu>

Github: closes #303


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1908981 13f79535-47bb-0310-9956-ffa450edef68
2023-04-05 06:38:18 +00:00
Giovanni Bechis
2133fa3a38 check apreq_cookie_make return value
Github: closes #302


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1908673 13f79535-47bb-0310-9956-ffa450edef68
2023-03-23 16:23:12 +00:00
Yann Ylavic
11d03dc86a core,modules: provide/use ap_parse_strict_length() helper.
It helps simplifying a lot of duplicated code based on apr_strtoff(), while
also rejecting leading plus/minus signs which are dissalowed in Content-Length
and (Content-)Range headers.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1877954 13f79535-47bb-0310-9956-ffa450edef68
2020-05-20 14:01:17 +00:00
Christophe Jaillet
3e56c5b221 Fix some typos reported in PR 59998
Most add already been fixed when PR 59990 had been applied on trunk. 

Thx klemens

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1827669 13f79535-47bb-0310-9956-ffa450edef68
2018-03-24 20:05:19 +00:00
Christophe Jaillet
dbe61c6eab No need to scan the first 5 bytes, they are already correct (i.e. HTTP_)
Fix indentation.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1746878 13f79535-47bb-0310-9956-ffa450edef68
2016-06-05 08:40:20 +00:00
Christophe Jaillet
a3ca028f70 Style ('{' on same line as function definition)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1631021 13f79535-47bb-0310-9956-ffa450edef68
2014-10-11 05:47:02 +00:00
Christophe Jaillet
40cc356ac3 Content-Length header should always be interpreted as a decimal.
Leading 0  could be erroneously considered as an octal value. PR 56598.
[Chris Card <ctcard hotmail com>]

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1626086 13f79535-47bb-0310-9956-ffa450edef68
2014-09-18 21:01:40 +00:00
Jim Jagielski
f43fb7a218 Fix: (long should be *plenty*!)
apreq_module_cgi.c:103:16: warning: comparison of unsigned expression >= 0 is always true [-Wtautological-compare]
    while (--p >= 0) {
           ~~~ ^  ~
    1 warning generated.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1498909 13f79535-47bb-0310-9956-ffa450edef68
2013-07-02 12:47:11 +00:00
Jim Jagielski
f785889504 value never used : dead assignment
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1204554 13f79535-47bb-0310-9956-ffa450edef68
2011-11-21 15:51:43 +00:00
Paul Querna
df99e8e45e Fix comment style
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1202328 13f79535-47bb-0310-9956-ffa450edef68
2011-11-15 17:46:27 +00:00
Philip M. Gollucci
4472a86146 As discussed at AC NA 2011
o relocate srclib/libapreq/library/*.c -> server/apreq_${f}.c
o relocate srclib/libapreq/include/*.h -> include/*.h
o remove apreq_version.[hc] related stuff since its nolonger its own lib
o connect modules/apreq to the build under 'most' default comment out in httpd.conf
o update make_exports.awk to handle APREQ marcos




git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1201372 13f79535-47bb-0310-9956-ffa450edef68
2011-11-13 00:20:32 +00:00