[Bug 42009] Mentor Graphics DK Design Suite crashes on clipboard copy

wine-bugs at winehq.org wine-bugs at winehq.org
Sat Dec 31 06:42:03 CST 2016


https://bugs.winehq.org/show_bug.cgi?id=42009

--- Comment #14 from Alexandre Julliard <julliard at winehq.org> ---
Thank you for testing. I believe that this is a bug in the Qt libraries.
Basically what happens in Qt is:

clipboard->m_data = data;
OleSetClipboard( data );

and in the WM_DRAWCLIPBOARD handler:

if (!OleIsCurrentClipboard( clipboard->m_data )) free m_data;

But it's possible that it would receive a WM_DRAWCLIPBOARD from a previous
change, and free the data while it's still inside OleSetClipoard.

I believe it would crash on Windows too if the clipboard changed at just the
wrong time. But on Wine, because we check for updates synchronously with
OpenClipboard, the WM_DRAWCLIPBOARD is pretty much guaranteed to happen at the
wrong time.

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