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

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


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.

	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: <>

More information about the wine-patches mailing list