shell32: shlfileop.c: avoid buffer overflow during test, avoid printing garbage

Dan Kegel dank at kegel.com
Thu May 29 18:07:09 CDT 2008


Two changes:
1) don't intentionally cause a buffer overflow during the test
(all we intended to do was to test with filenames longer
than MAX_PATH)
2) initialize a variable to avoid logging garbage during SHGetFileInfoA()

This should be more correct, and makes Valgrind happier, too.
Thanks to James for feedback on an early draft.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: shlfileop4.patch
Type: text/x-patch
Size: 4431 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080529/0f19d0f4/attachment-0001.bin 


More information about the wine-patches mailing list