[PATCH] msscript.ocx: Avoid buffer overflow when getting the type info.

Jacek Caban jacek at codeweavers.com
Mon Sep 23 08:03:25 CDT 2019


Hi Gabriel,

On 9/23/19 2:53 PM, Gabriel Ivăncescu wrote:
> @@ -139,6 +139,8 @@ static HRESULT get_typeinfo(tid_t tid, ITypeInfo **typeinfo)
>   {
>       HRESULT hres;
>   
> +    if (tid >= ARRAY_SIZE(typeinfos))
> +        return DISP_E_BADINDEX;


This is an internal function, so invalid tid should never happen.


Jacek




More information about the wine-devel mailing list