Marcus Meissner : ole32: Allocate more for FmtIdToPropStgName (Coverity).
Alexandre Julliard
julliard at winehq.org
Mon Jun 20 10:29:51 CDT 2016
Module: wine
Branch: master
Commit: 113b290dbabb7139ec6b301d2a70ddb66fb1fef7
URL: http://source.winehq.org/git/wine.git/?a=commit;h=113b290dbabb7139ec6b301d2a70ddb66fb1fef7
Author: Marcus Meissner <marcus at jet.franken.de>
Date: Sat Jun 18 09:58:09 2016 +0200
ole32: Allocate more for FmtIdToPropStgName (Coverity).
Signed-off-by: Marcus Meissner <marcus at jet.franken.de>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/ole32/stg_prop.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/ole32/stg_prop.c b/dlls/ole32/stg_prop.c
index 8e1aaef..a259883 100644
--- a/dlls/ole32/stg_prop.c
+++ b/dlls/ole32/stg_prop.c
@@ -2178,7 +2178,7 @@ static HRESULT WINAPI IPropertySetStorage_fnCreate(
IPropertyStorage** ppprstg)
{
StorageImpl *This = impl_from_IPropertySetStorage(ppstg);
- WCHAR name[CCH_MAX_PROPSTG_NAME];
+ WCHAR name[CCH_MAX_PROPSTG_NAME + 1];
IStream *stm = NULL;
HRESULT r;
@@ -2236,7 +2236,7 @@ static HRESULT WINAPI IPropertySetStorage_fnOpen(
{
StorageImpl *This = impl_from_IPropertySetStorage(ppstg);
IStream *stm = NULL;
- WCHAR name[CCH_MAX_PROPSTG_NAME];
+ WCHAR name[CCH_MAX_PROPSTG_NAME + 1];
HRESULT r;
TRACE("%p %s %08x %p\n", This, debugstr_guid(rfmtid), grfMode, ppprstg);
@@ -2280,7 +2280,7 @@ static HRESULT WINAPI IPropertySetStorage_fnDelete(
REFFMTID rfmtid)
{
StorageImpl *This = impl_from_IPropertySetStorage(ppstg);
- WCHAR name[CCH_MAX_PROPSTG_NAME];
+ WCHAR name[CCH_MAX_PROPSTG_NAME + 1];
HRESULT r;
TRACE("%p %s\n", This, debugstr_guid(rfmtid));
More information about the wine-cvs
mailing list