[Wine-patches] [eterhack] ieframe: Fix heap corruption caused by allocating 1 byte for a WCHAR (terminating \0).
Dmitry Timoshkov
dtimoshkov на etersoft.ru
Вт Ноя 10 10:21:29 MSK 2015
---
dlls/ieframe/navigate.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/ieframe/navigate.c b/dlls/ieframe/navigate.c
index 71aa221..19bf4473 100644
--- a/dlls/ieframe/navigate.c
+++ b/dlls/ieframe/navigate.c
@@ -957,9 +957,9 @@ HRESULT navigate_url(DocHost *This, LPCWSTR url, const VARIANT *Flags,
new_url = HeapAlloc(GetProcessHeap(),0,sizeof(WCHAR)*(strlenW(url)+8));
strcpyW(new_url, httpW);
new_url = strcatW(new_url,url);
- TRACE("Add Default protocol /n");
+ TRACE("Add Default protocol\n");
} else {
- new_url = HeapAlloc(GetProcessHeap(),0,sizeof(WCHAR)*strlenW(url)+1);
+ new_url = HeapAlloc(GetProcessHeap(),0,sizeof(WCHAR)*(strlenW(url)+1));
strcpyW(new_url, url);
}
--
2.6.3
Подробная информация о списке рассылки Wine-patches