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

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

XMLWordPrintable

      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.

        1. qtbug44674.svg
          425 kB
        2. qtbug44674.zip
          117 kB
        For Gerrit Dashboard: QTBUG-44674
        # Subject Branch Project Status CR V

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes