[WININET]

- Apply Wine commit 8fd44a3d (wininet: Fix invalid memory access in HTTP_QUERY_RAW_HEADERS (Valgrind).) by Sebastian Lackner. Fixes crash in wininet:http InternetReadFile_test

svn path=/trunk/; revision=63724
This commit is contained in:
Thomas Faber 2014-07-20 08:30:21 +00:00
parent 737295142c
commit 18ad0bd565

View file

@ -3568,12 +3568,12 @@ static DWORD HTTP_HttpQueryInfoW(http_request_t *request, DWORD dwInfoLevel,
TRACE("returning data: %s\n", debugstr_wn(headers, len / sizeof(WCHAR)));
for (i=0; i<len; i++)
for (i = 0; i < len / sizeof(WCHAR); i++)
{
if (headers[i] == '\n')
headers[i] = 0;
}
memcpy(lpBuffer, headers, len + sizeof(WCHAR));
memcpy(lpBuffer, headers, len);
}
*lpdwBufferLength = len - sizeof(WCHAR);