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

Application crash while loading not well-formed svg.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.4.0
    • 4.8.5
    • SVG Support
    • None
    • Qt 4.8.5
      Gentoo Linux x86_64
    • 3167c1374bb918033b5b4a5b54e0d0608698eeb0

    Description

      When I try to load svg from attachment with code like:

       
      #include <QApplication>
      #include <QImage>
      int main(int argc, char *argv[])
      {
          QApplication a(argc, argv);
          QImage("test.svg");
          return a.exec();
      }
      

      I get segfault.

      Despite that this svg file is not really well formed - most of browsers and svg editors can handle it.

      The problem is that in linearGradient element we have xlink:href to the same object.

      Attachments

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

        Activity

          People

            jbornema Joerg Bornemann
            razrfalcon Evgeniy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes