Alexandre Julliard : mapi32: Fix a heap buffer overflow.

Alexandre Julliard julliard at winehq.org
Thu Dec 17 10:37:13 CST 2009


Module: wine
Branch: master
Commit: 4e7389e44bcdba1bc0666313bf65128c0b18012a
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=4e7389e44bcdba1bc0666313bf65128c0b18012a

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Thu Dec 17 14:12:30 2009 +0100

mapi32: Fix a heap buffer overflow.

---

 dlls/mapi32/util.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/mapi32/util.c b/dlls/mapi32/util.c
index 71a5e1a..90cfa6e 100644
--- a/dlls/mapi32/util.c
+++ b/dlls/mapi32/util.c
@@ -1037,7 +1037,7 @@ void load_mapi_providers(void)
     TRACE("appName: %s\n", debugstr_w(appName));
 
     appKey = HeapAlloc(GetProcessHeap(), 0, sizeof(WCHAR) * (lstrlenW(regkey_mail) +
-        lstrlenW(regkey_backslash) + lstrlenW(appName)));
+        lstrlenW(regkey_backslash) + lstrlenW(appName) + 1));
 
     if (!appKey)
         goto cleanUp;




More information about the wine-cvs mailing list