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

QTextDocument::setHtml() consuming more than 25 GB of memory

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.2.0, 6.4.2, 6.6
    • GUI: Text handling
    • Manjaro Linux
      g++ 12.2.0
      clang 14.0.6

    Description

      1. Build the attached project.
        No sanitizers needed.
      2. Run the resulting program passing in the attached input file, e.g.:
        ./report 51266.html
        

        The program will allocate more than 25GB of memory and keep growing. If the file is broken, could QTextDocument notice that and exit earlier?

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

      Attachments

        1. CMakeLists.txt
          0.3 kB
          Robert Löhning
        2. main.cpp
          0.2 kB
          Robert Löhning
        3. 51266.html
          428 kB
          Robert Löhning
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        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:

              Gerrit Reviews

                There are no open Gerrit changes