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

Crash QSvgTinyDocument::load(const QByteArray &contents)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 6.6.0
    • SVG Support
    • None
    • macOS, Windows

    Description

      When using version 6.6.0 we have a crash when creating an image from a bytearray.
      and precisely

      • within QSvgTinyDocument::load(const QByteArray &contents) .
      • at line 199 QSvgHandler handler(&buffer);

      We had no problem with any previous version of QT.
      Inspecting the code I have seen that the code in the function QSvgTinyDocument::load has completely changed from version 6.5.3 to version 6.6.0.

      Sorry I don't have currently time to investigate further.  For the moment here some printscreen regarding the call stack.

      New function 6.6.0

      Previous implementation 6.5.3

      Attachments

        1. image-2023-11-01-13-14-43-478.png
          264 kB
          Domenico Zucchetti
        2. image-2023-11-01-13-15-58-426.png
          223 kB
          Domenico Zucchetti
        3. image-2023-11-01-13-19-13-251.png
          83 kB
          Domenico Zucchetti

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              qt.team.graphics.and.multimedia Qt Graphics Team
              domezuk Domenico Zucchetti
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes