gdi32: Protect against short sized LOGPALETTE in CreatePalette.
Daniel Mario Vega
dv5a at dc.uba.ar
Tue Feb 19 07:18:39 CST 2008
"CreatePalette(HDC, LOGPALETTE)" with a short allocated LOGPALETTE should fail
instead of crashing (Tested against Windows XP)
---
dlls/gdi32/palette.c | 6 +++++-
dlls/gdi32/tests/palette.c | 20 ++++++++++++++++++++
2 files changed, 25 insertions(+), 1 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 920bb44504d1939a85e392086e83c37201d3eb68.diff
Type: text/x-patch
Size: 1602 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080219/1914d07c/attachment-0001.bin
More information about the wine-patches
mailing list