http://bugs.winehq.org/show_bug.cgi?id=34580
Bug #: 34580 Summary: strtoul behaves incorrectly with negative numbers. Product: Wine Version: 1.7.1 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: msvcrt AssignedTo: wine-bugs@winehq.org ReportedBy: billy65bob@gmail.com Classification: Unclassified
Created attachment 46055 --> http://bugs.winehq.org/attachment.cgi?id=46055 Small test of strtoul showing bad behaviour with 64bit wine
Howdy ho, I and Lee were messing around with some 64bit applications built via mingw, and much to our chagrin, something was reading the numbers incorrectly.
We got the expected results on native Linux, native Windows (both mingw and msvc bins tested), but not on 64bit wine IF we built with mingw.
Investigating, we tracked it down to wine's implementation of strtoul.
I've written up a small test case showing our use of strtoul. It should also reliably reproduce the errors provided it is...
1. built as a 64bit Windows application; 2. strtoul is not inlined; 3. It's executed in wine
http://bugs.winehq.org/show_bug.cgi?id=34580
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, testcase
http://bugs.winehq.org/show_bug.cgi?id=34580
--- Comment #1 from Kevin Meyer billy65bob@gmail.com 2013-09-26 02:14:39 CDT --- Fixed as of commit a449b2d57b6ad84f11c90346e01b8acef546b4f5.
http://bugs.winehq.org/show_bug.cgi?id=34580
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |a449b2d57b6ad84f11c90346e01 | |b8acef546b4f5 Status|UNCONFIRMED |RESOLVED Resolution| |FIXED
--- Comment #2 from Austin English austinenglish@gmail.com 2013-09-26 02:25:18 CDT --- Fixed.
http://bugs.winehq.org/show_bug.cgi?id=34580
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #3 from Alexandre Julliard julliard@winehq.org 2013-09-27 13:41:44 CDT --- Closing bugs fixed in 1.7.3.