From 92ba28851aa9ecdc60ca66322ef648d8394f7cf4 Mon Sep 17 00:00:00 2001 From: James Hawkins Date: Wed, 24 Aug 2005 09:44:59 +0000 Subject: [PATCH] Avoid heap corruption by not accessing old HeapReAlloc'ed pointer. --- dlls/wininet/http.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c index 38eb010d7b9..94417fba5b8 100644 --- a/dlls/wininet/http.c +++ b/dlls/wininet/http.c @@ -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) { -- 2.11.4.GIT