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

Infinite loop with QImage::load() with some svg images

    XMLWordPrintable

Details

    Description

      Loading the attached svg image qtbug44674.svg to QImage ends up to an infinite loop in QBezier::shifted() function (\qtbase\src\gui\painting\qbezier.cpp, line 400). At some point the while (b >= beziers) loop ends up into a situation where ShiftResults are consecutively Discard and Split, and hence the value of b switches back and forth between two values infinitely. We probably hit a precision limit when split() cannot split anymore and then the bezier shift equals to zero and is therefore discarded.

      Attachments

        1. qtbug44674.svg
          425 kB
        2. qtbug44674.zip
          117 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            vgt Eirik Aavitsland
            qtcomsupport Qt Support
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes