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

Crash when pasting large and slow data

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.15.0, 6.0.0
    • 5.12.4, 5.13.0
    • QPA: Wayland
    • None

    Description

      When copy-pasting large text buffers to a Qt5 application using the Wayland backend, if the source of the copy-paste operation writes enough data and in small enough chunks, (e.g., because the source application must read from a network, or compute something for each line of copied text), then the application being pasted into can crash.

      The cause is a stack overflow in the function QWaylandMimeData::readData, which recursively makes successive calls to read() instead of using a while loop.

      Based on git history, can happen for versions from 5.4 until now.

      Attachments

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

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            mstoeckl M Stoeckl
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes