GDI bitmap tests
comargo at gmail.com
Fri Nov 25 11:14:40 CST 2005
During research the crashing application I've found a problem that can
be easily reproduced by test attached.
By investigation of problem I've found that original DIB bit depth is
4bpp, Physical pixmap bit depth is (equal to screen) 24bpp.
In x11drv/bitmap.c X11_GetBitmapBits takes in account just only bit
depth of physical pixmap, and copies it to provided buffer as-is.
I.e. it tries to fill buffer with size (e.g.) 48x48x4bpp with
48x48x24bpp that causes buffer overrun and late falling in
Cyril Margorin <comargo at gmail.com>
add test of LoadImage() and CopyImage() bunch to gdi/test/bitmap.c
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 921 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20051125/5cb09216/gdi_test_bitmap.copyimage.obj
More information about the wine-patches