mirror of
https://github.com/apache/httpd.git
synced 2026-01-26 19:01:35 +03:00
Simple fix for possibly unterminated REG_SZ data
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95286 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -211,7 +211,9 @@ apr_status_t ap_registry_get_value(apr_pool_t *p, const char *key, const char *n
|
||||
if (rv != ERROR_SUCCESS)
|
||||
return_error(rv);
|
||||
|
||||
*ppValue = apr_palloc(p, nSize);
|
||||
*ppValue = apr_palloc(p, nSize + 1);
|
||||
(*ppValue)[nSize] = '\0';
|
||||
|
||||
rv = RegQueryValueEx(hKey,
|
||||
name, /* key name */
|
||||
NULL, /* reserved */
|
||||
|
||||
Reference in New Issue
Block a user