[PATCH v5 6/7] gdi32: allow passing BITMAPINFO with bmiHeader.biSizeImage == 0 for EMF DC.

Jacek Caban jacek at codeweavers.com
Mon Nov 1 16:33:26 CDT 2021


On 11/1/21 6:31 AM, Jinoh Kang wrote:
> +        UINT elm_size = coloruse == DIB_PAL_COLORS ? sizeof(WORD) : sizeof(DWORD);
> +        UINT colours = dst->biClrUsed;
> +
> +        if (colours > UINT_MAX / elm_size)
> +            return FALSE;


Should we use at most 1 << bpp entries here?


Thanks,

Jacek




More information about the wine-devel mailing list