Marcus Meissner : shdocvw: Check safearray dimension too (Coverity).
Module: wine Branch: master Commit: 1bb985fb277d1c39983884907728c5afde30d061 URL: http://source.winehq.org/git/wine.git/?a=commit;h=1bb985fb277d1c399838849077... Author: Marcus Meissner <marcus(a)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;
participants (1)
-
Alexandre Julliard