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

[REG 5.15.2 -> 6.0.0] QTextDocument::setMarkdown very slow on some input

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.0.0, 6.4.2, 6.6
    • GUI: Text handling
    • Ubuntu 20.04 LTS
      g++ 9.4.0
      clang 10.0.0

    Description

      1. Build the attached project.
        No sanitizers needed.
      2. Run the resulting program passing in one of the attached input files, e.g.:
        ./report 29381.md
        

      It takes nearly two minutes until the program returns. If the file is broken, could QTextDocument notice that and exit earlier?

      Google's oss-fuzz found this as issue 29381.

      Attachments

        1. main.cpp
          0.2 kB
        2. CMakeLists.txt
          0.3 kB
        3. 29381.md
          128 kB

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            rlohning Robert Löhning
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: