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

Qt application crashes trying to execute QTextDocument::setHtml() with special text

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.0.0
    • 4.7.4
    • GUI: Text handling
    • None
    • 2e6b8b4734710377e25c199e3ff7865628e7d723

    Description

      I found a crash in KDE which is described in this report: https://bugs.kde.org/show_bug.cgi?id=284718
      It appears when an application (reproduced with several ones) tries to call methods that lead to QTextDocument::setHtml() call (e.g. setText to QTextEdit) with special text. The text is equal to the body of this tweet: http://twitter.com/#!/tiesto/status/127767987531948032 being received to a QString. For instance, KWin crashes when browser try to compose window title using the tweet.

      Backtrace for KWin is attached.

      Attachments

        1. kwin_crash.txt
          9 kB
        2. qt_crash.png
          qt_crash.png
          356 kB
        3. qtcrashtest.tar.bz2
          1 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            achernov Alexey Chernov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes