oleaut32: Add the color table address checking for BI_BITFIELDS compression

Ilya Shpigor shpigor at etersoft.ru
Wed Dec 29 05:26:28 CST 2010


Hello!

I have faced with situation when the BITMAPINFO bmiColors field overruns the 
bitmap header boundary in OLEPictureImpl_LoadDIB function.

Address of the bits buffer beginning is BITMAPFILEHEADER plus bfOffBits value 
(as MSDN said). But in my application this address was the same as address of 
the BITMAPINFO bmiColors field.

I think that application doesn't fill bmiColors fields, but set BI_BITFIELDS 
compression and Wine must correctly process this data

Is this checking able to be the correct solution for this problem?

-- 
Best regards,
Ilya Shpigor.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-oleaut32-Add-the-color-table-address-checking-for-BI.patch
Type: text/x-diff
Size: 1038 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20101229/e0422a1a/attachment.patch>


More information about the wine-patches mailing list