http://bugs.winehq.org/show_bug.cgi?id=28710
Bug #: 28710 Summary: ws2_32: sock.ok reads/writes invalid memory during async_getservbyport? Product: Wine Version: 1.3.30 Platform: x86 OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: winsock AssignedTo: wine-bugs@winehq.org ReportedBy: dank@kegel.com Classification: Unclassified
Running "make sock.ok" in ws2_32, valgrind complains as follows:
Invalid write of size 2 at copy_se (async.c:232) by async_getservbyport (async.c:256) by ??? (in dlls/ntdll/ntdll.dll.so) by call_thread_entry_point (signal_i386.c:2499) by start_thread (thread.c:405) by start_thread (pthread_create.c:304) by clone (clone.S:130) Address 0x7f22f634 is not stack'd, malloc'd or (recently) free'd
Invalid write of size 4 at copy_se (async.c:234) by async_getservbyport (async.c:256) by ??? (in dlls/ntdll/ntdll.dll.so) by call_thread_entry_point (signal_i386.c:2499) by start_thread (thread.c:405) by start_thread (pthread_create.c:304) by clone (clone.S:130) Address 0x7f22f62c is not stack'd, malloc'd or (recently) free'd
Invalid write of size 1 at strcpy (mc_replace_strmem.c:311) by copy_se (async.c:235) by async_getservbyport (async.c:256) by ??? (in dlls/ntdll/ntdll.dll.so) by call_thread_entry_point (signal_i386.c:2499) by start_thread (thread.c:405) by start_thread (pthread_create.c:304) by clone (clone.S:130) Address 0x7f22f63c is not stack'd, malloc'd or (recently) free'd
Invalid write of size 4 at list_dup (async.c:124) by copy_se (async.c:239) by async_getservbyport (async.c:256) by ??? (in dlls/ntdll/ntdll.dll.so) by call_thread_entry_point (signal_i386.c:2499) by start_thread (thread.c:405) by start_thread (pthread_create.c:304) by clone (clone.S:130) Address 0x7f22f644 is not stack'd, malloc'd or (recently) free'd
etc.
http://bugs.winehq.org/show_bug.cgi?id=28710
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |00cpxxx@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=28710
Erich Hoover ehoover@mines.edu changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |ehoover@mines.edu
--- Comment #1 from Erich Hoover ehoover@mines.edu 2012-07-06 11:44:22 CDT --- Did you just run "valgrind make sock.ok"? If so, it looks like this might be fixed.
https://bugs.winehq.org/show_bug.cgi?id=28710
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, source, testcase, | |valgrind Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #2 from Austin English austinenglish@gmail.com --- I don't see this in wine-1.7.19-70-gd6a59f7, assuming fixed.
https://bugs.winehq.org/show_bug.cgi?id=28710
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #3 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.7.20.