Avoid heap corruption by not accessing old HeapReAlloc'ed pointer.

This commit is contained in:
James Hawkins 2005-08-24 09:44:59 +00:00 committed by Alexandre Julliard
parent 4519b1bd1d
commit 92ba28851a
1 changed files with 1 additions and 0 deletions

View File

@ -2439,6 +2439,7 @@ BOOL HTTP_ProcessHeader(LPWININETHTTPREQW lpwhr, LPCWSTR field, LPCWSTR value, D
lpsztmp = HeapReAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, lphttpHdr->lpszValue, (len+1)*sizeof(WCHAR));
if (lpsztmp)
{
lphttpHdr->lpszValue = lpsztmp;
/* FIXME: Increment lphttpHdr->wCount. Perhaps lpszValue should be an array */
if (ch > 0)
{