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

Potential use-after-free in qClipboardPasteTo

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.5.0
    • 6.4.0, 6.4.1, 6.5
    • Core: Other
    • None
    • WebAssembly
    • 4673f0027 (dev)

    Description

      qClipboardPasteTo:
      Line 87: QMimeData *mMimeData = new QMimeData;
      Line 137 and line 143: qWasmClipboardPaste(mMimeData);
       
      If anyone calls QPlatformClipboard::setMimeData between these calls (when file hasn't streamed yet in the file handling loop), the mMimeData will have been deleted before the second access.

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-108841
          # Subject Branch Project Status CR V

          Activity

            People

              mikolaj.boc Mikołaj Boc (Inactive)
              mikolaj.boc Mikołaj Boc (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes