Commit 4e7389e4 authored by Alexandre Julliard's avatar Alexandre Julliard

mapi32: Fix a heap buffer overflow.

parent 60ca760e
...@@ -1037,7 +1037,7 @@ void load_mapi_providers(void) ...@@ -1037,7 +1037,7 @@ void load_mapi_providers(void)
TRACE("appName: %s\n", debugstr_w(appName)); TRACE("appName: %s\n", debugstr_w(appName));
appKey = HeapAlloc(GetProcessHeap(), 0, sizeof(WCHAR) * (lstrlenW(regkey_mail) + appKey = HeapAlloc(GetProcessHeap(), 0, sizeof(WCHAR) * (lstrlenW(regkey_mail) +
lstrlenW(regkey_backslash) + lstrlenW(appName))); lstrlenW(regkey_backslash) + lstrlenW(appName) + 1));
if (!appKey) if (!appKey)
goto cleanUp; goto cleanUp;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment