diff options
author | Eirik Aavitsland <eirik.aavitsland@qt.io> | 2019-04-01 14:17:11 +0200 |
---|---|---|
committer | Jani Heikkinen <jani.heikkinen@qt.io> | 2019-04-02 09:11:40 +0000 |
commit | 15f74a0f8a41759e1216d52d53852c05c9299107 (patch) | |
tree | b25b1cb20c25a39d14e8457042f355a85dcaf009 /src/svg/qsvgstyle_p.h | |
parent | d477ec8f40b28caf3a216d9e8550d8871d5131fb (diff) | |
download | qtsvg-15f74a0f8a41759e1216d52d53852c05c9299107.tar.gz |
Fix crash for recursive gradient references
A reference loop with at least three elements would lead to endless
recursion.
Fixes: QTBUG-74189
Change-Id: Ie3c1b32da0e98e9218dc387dd3210666018a92e1
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/svg/qsvgstyle_p.h')
-rw-r--r-- | src/svg/qsvgstyle_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/svg/qsvgstyle_p.h b/src/svg/qsvgstyle_p.h index 916c9fa..39aa690 100644 --- a/src/svg/qsvgstyle_p.h +++ b/src/svg/qsvgstyle_p.h @@ -577,6 +577,7 @@ public: void setStopLink(const QString &link, QSvgTinyDocument *doc); QString stopLink() const { return m_link; } void resolveStops(); + void resolveStops_helper(QStringList *visited); void setMatrix(const QMatrix &matrix); QMatrix qmatrix() const |