gdi32: Protect against short sized LOGPALETTE in CreatePalette.

Dmitry Timoshkov dmitry at codeweavers.com
Tue Feb 26 10:21:54 CST 2008


"Dan Kegel" <dank at kegel.com> wrote:

> your patch uses IsBadReadPtr(), but that function
> is deprecated in favor of using an exception handler.
> See
> http://www.winehq.org/pipermail/wine-devel/2006-April/046560.html
> Here's an example (sorry it's a messy one, it's just the first one
> google found):
> http://www.winehq.org/pipermail/wine-patches/2004-November/013791.html

dlls/kernel32/string.c,lstrcpyA should be a better example since the patch
above uses an old syntax (and has been rejected due to a different reason).

-- 
Dmitry.



More information about the wine-devel mailing list