[gdi32] Protect some DIB functions from bad inputs (take 6)

Dan Kegel dank at kegel.com
Thu Feb 28 19:01:09 CST 2008


This should fix http://bugs.winehq.org/show_bug.cgi?id=7380

The test is taken from Rein's original patch
http://marc.info/?l=wine-patches&m=114269049431915&w=2
The address checking uses idea from Rein, Louis, and Anastasius,
refactored slightly, and defiantly using IsBadReadPtr.  I bet it's the
right thing to do.  And it's bloody well time.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dib6.patch
Type: text/x-diff
Size: 4558 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080228/d541616b/attachment.patch 


More information about the wine-patches mailing list