[PATCH] mshtml: Fix out-of-bounds props access.
Gabriel Ivăncescu
gabrielopcode at gmail.com
Wed Sep 15 08:06:07 CDT 2021
Signed-off-by: Gabriel Ivăncescu <gabrielopcode at gmail.com>
---
dlls/mshtml/dispex.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/mshtml/dispex.c b/dlls/mshtml/dispex.c
index c758800..64ead8f 100644
--- a/dlls/mshtml/dispex.c
+++ b/dlls/mshtml/dispex.c
@@ -1736,7 +1736,7 @@ static HRESULT WINAPI DispatchEx_DeleteMemberByDispID(IDispatchEx *iface, DISPID
DWORD idx = id - DISPID_DYNPROP_0;
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;
prop = This->dynamic_data->props + idx;
--
2.31.1
More information about the wine-devel
mailing list