[PATCH 2/2] gdiplus: Detect integer overflow in GdipCreateBitmapFromScan0.

Lei Zhang thestig at google.com
Fri Jul 18 18:44:02 CDT 2008


We should not need to take the absolute value of (stride * height) in
GdipCreateBitmapFromScan0, since neither values can be negative at
that point. All it is doing is hiding cases where the requested image
is too big and we get integer overflow.

The tests added reproduce the behavior in bug 14536, which this patch fixes.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0002-gdiplus-Detect-integer-overflow-in-GdipCreateBitmapFr.txt
Url: http://www.winehq.org/pipermail/wine-patches/attachments/20080718/eec90e27/attachment.txt 

More information about the wine-patches mailing list