mshtml: Fix out-of-bounds props access.

Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Gabriel Ivăncescu 2021-09-15 16:06:07 +03:00 committed by Alexandre Julliard
parent 8718a23b2e
commit 2868e9350a
1 changed files with 1 additions and 1 deletions

View File

@ -1736,7 +1736,7 @@ static HRESULT WINAPI DispatchEx_DeleteMemberByDispID(IDispatchEx *iface, DISPID
DWORD idx = id - DISPID_DYNPROP_0; DWORD idx = id - DISPID_DYNPROP_0;
dynamic_prop_t *prop; dynamic_prop_t *prop;
if(!get_dynamic_data(This) || idx > This->dynamic_data->prop_cnt) if(!get_dynamic_data(This) || idx >= This->dynamic_data->prop_cnt)
return S_OK; return S_OK;
prop = This->dynamic_data->props + idx; prop = This->dynamic_data->props + idx;