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

[REG 6.1.3 -> 6.2.0] Loading svg file takes too long

    XMLWordPrintable

    Details

    • Commits:
      1749388cdc (qt/qtsvg/dev) 1749388cdc (qt/tqtc-qtsvg/dev) c80de46664 (qt/tqtc-qtsvg/5.15) 980b4d27bd (qt/qtsvg/6.2) 2f70896980 (qt/qtsvg/6.3) 980b4d27bd (qt/qtsvg/6.2.3) 980b4d27bd (qt/tqtc-qtsvg/6.2) 980b4d27bd (qt/tqtc-qtsvg/6.2.3)

      Description

      1. Have a build of Qt including qtsvg.
        No sanitizers needed.
      2. Build the attached project.
        qt-cmake -S /tmp/report/ && cmake --build .
        
      3. Run the resulting program and pass the input file.
        time ./report /tmp/report/41331.svg
        

        You will see error messages and it will take too long until the program returns:

        qt.svg: link #a is undefined!
        qt.svg: link #-polytonc is undefined!
        qt.svg: link # is undefined!
        qt.svg: link # is undefined!
        qt.svg: link #directionc is undefined!
        
        real	0m18,880s
        user	0m16,749s
        sys	0m0,072s
        

        While it runs, the program fully occupies a CPU core.

      When built on Qt 6.1.3, the program returns immediately:

      qt.svg: link #a is undefined!
      qt.svg: link #-polytonc is undefined!
      qt.svg: link # is undefined!
      qt.svg: link # is undefined!
      qt.svg: link #directionc is undefined!
      
      real	0m1,139s
      user	0m0,061s
      sys	0m0,042s
      

      Google's oss-fuzz found this as issue 41331. They will publish the report on February 21st.

        Attachments

        1. 41331.svg
          2 kB
        2. CMakeLists.txt
          0.3 kB
        3. main.cpp
          0.2 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            vgt Eirik Aavitsland
            Reporter:
            rlohning Robert Löhning
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes