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.