Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.6.3
-
None
-
Tested in Linux, Windows & Mac
Description
This piece of code gives Segmentation Fault for a particular ill-formed svg:
#include <QSize> #include <QImage> #include <QString> int main(int argc, char *argv[]) { QImage* image = new QImage(QString::fromUtf8("malformed.svg")); }
The svg is as simple as it gets (with a loop in it):
<svg> <g id="0"><use xlink:href="#0" /></g> </svg>
Works fine in Qt 5.4 & Qt5.8.0. Fails for 5.5.1, 5.6.2 & 5.6.3
Seems pretty similar to: https://bugreports.qt.io/browse/QTBUG-35387