[Bug 28710] New: ws2_32: sock.ok reads/writes invalid memory during async_getservbyport?

wine-bugs at winehq.org wine-bugs at winehq.org
Thu Oct 13 19:59:08 CDT 2011


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 at winehq.org
        ReportedBy: dank at 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.

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list