Fixed a number of buffer overflows with cmd, bug #13469 (try 2)

Diaa Sami diaasami at
Mon Mar 2 12:45:50 CST 2009

Fixed a number of buffer overflows in cmd(based on limits of Windows cmd)

- Each of quals, param1 and param2 can be almost as long as MAXSTRING(actually a few characters shorter) so their length was changed.
- Fixed an overflow with long program names(which is stored in stemofsearch), it can't be equal to or longer than MAX_PATH.
- Fixed an overflow in WCMD_DumpCommands with long commands by removing the fixed-length buffer and using WINE_TRACE instead of buffer+sprintf.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix_cmd_buffer_overflows2.patch
Type: text/x-patch
Size: 8063 bytes
Desc: not available
Url : 

More information about the wine-patches mailing list