shdocvw: Fix a buffer overflow in InternetShortcut's IPersistFile::Load.
This commit is contained in:
parent
1b0182f9bb
commit
c345ca1a0f
|
@ -361,7 +361,7 @@ static HRESULT WINAPI PersistFile_Load(IPersistFile *pFile, LPCOLESTR pszFileNam
|
|||
{
|
||||
CoTaskMemFree(url);
|
||||
len *= 2;
|
||||
url = CoTaskMemAlloc(len);
|
||||
url = CoTaskMemAlloc(len*sizeof(WCHAR));
|
||||
if (url == NULL)
|
||||
break;
|
||||
r = GetPrivateProfileStringW(str_header, str_URL, NULL, url, len, pszFileName);
|
||||
|
|
Loading…
Reference in New Issue