kernel32: avoid unprotected sprintf on registry/user-supplied format string

Joerg-Cyril.Hoehle at t-systems.com Joerg-Cyril.Hoehle at t-systems.com
Wed Jul 1 04:05:09 CDT 2009


Hi,

I stumbled across this sprintf which I replaced by snprintf.

As I've seen public references to the "winedbg --auto %ld %ld"
setting in the registry, I've made sure that %ld %ld is supported, although the less common %lu would be more appropriate -- too late.

Sadly, printf format strings are at odds with type abstractions.

Regards,
	Jörg Höhle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kernel32-sprintf.patch
Type: application/octet-stream
Size: 1493 bytes
Desc: kernel32-sprintf.patch
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20090701/fca348d9/attachment.obj>


More information about the wine-patches mailing list