[Bug 21041] New: Mismatched GlobalLock/HeapFree in X11DRV_CLIPBOARD_ExportString?

wine-bugs at winehq.org wine-bugs at winehq.org
Wed Dec 16 11:14:11 CST 2009


http://bugs.winehq.org/show_bug.cgi?id=21041

           Summary: Mismatched GlobalLock/HeapFree in
                    X11DRV_CLIPBOARD_ExportString?
           Product: Wine
           Version: 1.1.34
          Platform: PC
               URL: http://build.chromium.org/buildbot/waterfall.fyi/build
                    ers/Chromium%20Linux%20Wine%20(valgrind)/builds/57/ste
                    ps/wine%20valgrind%20test:%20unit_tests/logs/stdio
        OS/Version: Linux
            Status: NEW
          Keywords: download, source, testcase
          Severity: normal
          Priority: P2
         Component: winex11.drv
        AssignedTo: wine-bugs at winehq.org
        ReportedBy: dank at kegel.com
                CC: ulrich at codeweavers.com, thestig at google.com


http://build.chromium.org/buildbot/waterfall.fyi/builders/Chromium%20Linux%20Wine%20(valgrind)/builds/57/steps/wine%20valgrind%20test:%20unit_tests/logs/stdio
shows:

[ RUN      ] FocusManagerTest.ViewFocusCallbacks
...
Invalid free() / delete / delete[]
   at RtlFreeHeap (heap.c:255)
   by X11DRV_CLIPBOARD_ExportString (clipboard.c:1548)
   by X11DRV_HandleSelectionRequest (clipboard.c:3353)
   by X11DRV_SelectionRequest (clipboard.c:3397)
   by process_events (event.c:317)
   by X11DRV_MsgWaitForMultipleObjectsEx (event.c:408)
   by GetQueueStatus (input.c:296)
 Address 0x7f07ec88 is 8 bytes inside a block of size 18 alloc'd
   at RtlAllocateHeap (heap.c:247)
   by HeapAlloc (heap.c:276)
   by GlobalAlloc (heap.c:395)
   by X11DRV_CLIPBOARD_RenderFormat (clipboard.c:1023)
   by X11DRV_CLIPBOARD_ExportString (clipboard.c:1666)
   by X11DRV_HandleSelectionRequest (clipboard.c:3353)
   by X11DRV_SelectionRequest (clipboard.c:3397)
   by process_events (event.c:317)
   by X11DRV_MsgWaitForMultipleObjectsEx (event.c:408)
   by GetQueueStatus (input.c:296)

Looks like a mismatch to me?

1529  text = GlobalLock(lpData->hData32);
...
1548  HeapFree(GetProcessHeap(), 0, text);

-- 
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