Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-13237

Crash in QWidgetPrivate::unregisterOleDnd() when dropTarget->Release() decrements reference count to zero

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 4.8.6
    • 4.6.3, 4.7.4, 4.8.0
    • None
    • Windows XP, Windows Vista, Windows 7
    • 871c2fbc5192836cc2918a760aec4d4c680fd8c0

    Description

      This is a duplicate of QTBUG-7801, but that bug was closed due to lack of activity.

      A crash will occur in QWidgetPrivate::unregisterOleDnd (\src\gui\kernel\qwidget_win.cpp) when the function attempts to call CoLockObjectExternal(dropTarget, false, true) if the dropTarget object's reference count was decremented to zero by the dropTarget->Release() call at the beginning of the function.

      I haven't been able to create a small project that can repro this issue, but I have attached a patch which fixes the problem for our project.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              andysh Andy Shaw
              hendo Neil Henderson
              Votes:
              7 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes