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

QQmlComponent::create spends too much time and memory on invalid file

    XMLWordPrintable

Details

    Description

      1. Build the attached project.
      2. Pass the attached .qml file to the resulting program:
        ./report 22923-minimized.qml
        

        It will consume about 20 seconds of time and 3.5GB of memory.

      Looking at the file, it seems obviously malformed to me. Would it be possible to exit earlier?

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

      Attachments

        1. 22923-minimized.qml
          233 kB
        2. main.cpp
          0.3 kB
        3. report.pro
          0.1 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            rlohning Robert Löhning
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes