mirror of
https://github.com/apache/httpd.git
synced 2025-08-03 16:33:59 +00:00
* 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
This commit is contained in:
@ -59,6 +59,7 @@ static int sc_for_req_header(const char *header_name)
|
|||||||
if (len < 4 || len > 15)
|
if (len < 4 || len > 15)
|
||||||
return UNKNOWN_METHOD;
|
return UNKNOWN_METHOD;
|
||||||
|
|
||||||
|
memset(header, 0, sizeof header);
|
||||||
while (*p)
|
while (*p)
|
||||||
header[i++] = apr_toupper(*p++);
|
header[i++] = apr_toupper(*p++);
|
||||||
header[i] = '\0';
|
header[i] = '\0';
|
||||||
|
Reference in New Issue
Block a user