Blame SOURCES/qtsvg-5.15.2-clamp-parsed-doubles-to-float-representtable-values.patch

404993
diff --git a/src/svg/qsvghandler.cpp b/src/svg/qsvghandler.cpp
404993
index b3d9aaf..9dac05c 100644
404993
--- a/src/svg/qsvghandler.cpp
404993
+++ b/src/svg/qsvghandler.cpp
404993
@@ -673,7 +673,8 @@ static qreal toDouble(const QChar *&str)
2e3332
             val = -val;
2e3332
     } else {
2e3332
         val = QByteArray::fromRawData(temp, pos).toDouble();
404993
-        if (qFpClassify(val) != FP_NORMAL)
2e3332
+        // Do not tolerate values too wild to be represented normally by floats
404993
+        if (qFpClassify(float(val)) != FP_NORMAL)
404993
             val = 0;
2e3332
     }
2e3332
     return val;
404993
@@ -3046,6 +3047,8 @@ static QSvgStyleProperty *createRadialGradientNode(QSvgNode *node,
2e3332
         ncy = toDouble(cy);
2e3332
     if (!r.isEmpty())
2e3332
         nr = toDouble(r);
2e3332
+    if (nr < 0.5)
2e3332
+        nr = 0.5;
2e3332
 
2e3332
     qreal nfx = ncx;
2e3332
     if (!fx.isEmpty())