version: Check the size of the input buffer so we don't write past the end

James Hawkins truiken at gmail.com
Mon Oct 3 22:21:22 CDT 2005


Hey,

This fixes the current problem with bug 2482.  The app calls
GetFileVersionInfo with a buffer of length 260 bytes. 
GetFileVersionInfoSize shows that the size is ~1700 bytes.  The
pointer (data + fileversioninfosize) is definitely invalid.  This
change makes sure there's room in the input buffer for the size of the
FileVersionInfo and the string "FE2X".

Changelog
* Check the size of the input buffer so we don't write past the end.

--
James Hawkins
-------------- next part --------------
A non-text attachment was scrubbed...
Name: version.diff
Type: text/x-patch
Size: 1133 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20051003/27b41b47/version.diff


More information about the wine-patches mailing list