diff options
author | Joe Orton <jorton@apache.org> | 2018-10-05 12:12:12 +0200 |
---|---|---|
committer | Joe Orton <jorton@apache.org> | 2018-10-05 12:12:12 +0200 |
commit | 6ac821d9af5b2c84e77bc02ebb179c64c7f4653c (patch) | |
tree | d4a49a1cdd9852eb28affbf0eac8a68973733606 /modules | |
parent | XForms. (diff) | |
download | apache2-6ac821d9af5b2c84e77bc02ebb179c64c7f4653c.tar.xz apache2-6ac821d9af5b2c84e77bc02ebb179c64c7f4653c.zip |
* modules/proxy/ajp_header.c (sc_for_req_header): Zero-initialize
buffer to avoid potential (harmless) memcmp comparison against
garbage stack data later. (clang warning).
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1842881 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules')
-rw-r--r-- | modules/proxy/ajp_header.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/proxy/ajp_header.c b/modules/proxy/ajp_header.c index 4cfc65b9f9..b4dc47ccf5 100644 --- a/modules/proxy/ajp_header.c +++ b/modules/proxy/ajp_header.c @@ -59,6 +59,7 @@ static int sc_for_req_header(const char *header_name) if (len < 4 || len > 15) return UNKNOWN_METHOD; + memset(header, 0, sizeof header); while (*p) header[i++] = apr_toupper(*p++); header[i] = '\0'; |