http://bugs.winehq.org/show_bug.cgi?id=27348
Summary: _snprintf overflows specified bounds Product: Wine Version: unspecified Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: msvcrt AssignedTo: wine-bugs@winehq.org ReportedBy: ak.miller@auckland.ac.nz
Created an attachment (id=34972) --> (http://bugs.winehq.org/attachment.cgi?id=34972) A simple program which crashes Wine but works on Windows.
The Wine MSVCRT _snprintf implementation is wrong; the simple test program to be attached shortly is correct according to the docs from Microsoft, and works fine on Windows, but under Wine (checked out recently from git), it crashes due to heap corruption.