Alexander Dorofeyev : quartz: Fix string buffer overflow.

Alexandre Julliard julliard at winehq.org
Tue Jul 1 08:27:47 CDT 2008


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

Author: Alexander Dorofeyev <alexd4 at inbox.lv>
Date:   Sun Jun 29 15:07:43 2008 +0300

quartz: Fix string buffer overflow.

---

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

diff --git a/dlls/quartz/filtermapper.c b/dlls/quartz/filtermapper.c
index 06ec334..c4b925c 100644
--- a/dlls/quartz/filtermapper.c
+++ b/dlls/quartz/filtermapper.c
@@ -1472,7 +1472,7 @@ static HRESULT WINAPI FilterMapper_RegisterPinType(
     LPWSTR wszClsidSubType = NULL;
     HKEY hKey = NULL;
     WCHAR * wszTypesKey;
-    WCHAR wszKeyName[strlenW(wszClsidSlash) + (CHARS_IN_GUID-1) + 1];
+    WCHAR wszKeyName[MAX_PATH];
 
     TRACE("(%p)->(%s, %s, %s, %s)\n", iface, debugstr_guid(&clsFilter), debugstr_w(szName),
                     debugstr_guid(&clsMajorType), debugstr_guid(&clsSubType));




More information about the wine-cvs mailing list