[PATCH 2/2] gdiplus: Detect integer overflow in GdipCreateBitmapFromScan0.
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...
More information about the wine-patches