Marcus Meissner : shdocvw: Check safearray dimension too (Coverity).
Alexandre Julliard
julliard at winehq.org
Mon May 9 13:34:45 CDT 2011
Module: wine
Branch: master
Commit: 1bb985fb277d1c39983884907728c5afde30d061
URL: http://source.winehq.org/git/wine.git/?a=commit;h=1bb985fb277d1c39983884907728c5afde30d061
Author: Marcus Meissner <marcus at jet.franken.de>
Date: Sat May 7 20:36:20 2011 +0200
shdocvw: Check safearray dimension too (Coverity).
---
dlls/shdocvw/dochost.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/shdocvw/dochost.c b/dlls/shdocvw/dochost.c
index 3c0dbd2..edbd3c2 100644
--- a/dlls/shdocvw/dochost.c
+++ b/dlls/shdocvw/dochost.c
@@ -479,7 +479,7 @@ static HRESULT WINAPI ClOleCommandTarget_Exec(IOleCommandTarget *iface,
LONG ind;
HRESULT hres;
- if(V_VT(pvaIn) != VT_ARRAY || !sa)
+ if(V_VT(pvaIn) != VT_ARRAY || !sa || (SafeArrayGetDim(sa) != 1))
return E_INVALIDARG;
ind = 0;
More information about the wine-cvs
mailing list