http://bugs.winehq.org/show_bug.cgi?id=32643
Bug #: 32643 Summary: getsockopt() does not indicate WSAEFAULT when setting optlen too small Product: Wine Version: 1.5.20 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: trivial Priority: P2 Component: winsock AssignedTo: wine-bugs@winehq.org ReportedBy: alexander255@lavabit.com Classification: Unclassified
Using the attached WSA code will cause an error on Windows but NOT on WINE. If you change "optlen" value to at least 4, the example the code will run smoothly on both platforms.
http://bugs.winehq.org/show_bug.cgi?id=32643
--- Comment #1 from Alexander Schlarb alexander255@lavabit.com 2013-01-03 13:37:00 CST --- Created attachment 43072 --> http://bugs.winehq.org/attachment.cgi?id=43072 The bug code
http://bugs.winehq.org/show_bug.cgi?id=32643
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW CC| |00cpxxx@gmail.com Ever Confirmed|0 |1
--- Comment #2 from Bruno Jesus 00cpxxx@gmail.com 2013-01-05 16:31:55 CST --- I can confirm this issue in wine 1.5.21.
http://bugs.winehq.org/show_bug.cgi?id=32643
--- Comment #3 from Bruno Jesus 00cpxxx@gmail.com 2013-01-05 16:46:54 CST --- This is really weird, it only happens with SO_ERROR. It needs tests in other OS like OSX or BSD. Maybe it's a special rule regarding SO_ERROR in linux.
http://bugs.winehq.org/show_bug.cgi?id=32643
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |testcase
http://bugs.winehq.org/show_bug.cgi?id=32643
--- Comment #4 from Bruno Jesus 00cpxxx@gmail.com 2013-01-07 17:36:30 CST --- I see now that it's a implementation detail that is also present in the minix source, it only copies the amount of bytes passed which can be < 4. So we have to do it in our side. A have a few tests already.
http://bugs.winehq.org/show_bug.cgi?id=32643
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|wine-bugs@winehq.org |00cpxxx@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=32643
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download
--- Comment #5 from Austin English austinenglish@gmail.com --- Is this still an issue in current (1.7.36 or newer) wine? If so, please attach terminal output.
https://bugs.winehq.org/show_bug.cgi?id=32643
--- Comment #6 from Bruno Jesus 00cpxxx@gmail.com --- Still in wine 1.7.34. I have a quite long patch to test the parameters of all socket options, it will take longer to make proper tests.
https://bugs.winehq.org/show_bug.cgi?id=32643
François Gouget fgouget@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fgouget@codeweavers.com Keywords| |source
https://bugs.winehq.org/show_bug.cgi?id=32643
Hans Leidekker hans@meelstraat.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEW |RESOLVED
--- Comment #7 from Hans Leidekker hans@meelstraat.net --- Test passes on Wine.
https://bugs.winehq.org/show_bug.cgi?id=32643
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #8 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 8.0-rc5.