diff options
author | Ionen Wolkens <ionen@gentoo.org> | 2023-10-12 15:47:56 -0400 |
---|---|---|
committer | Ionen Wolkens <ionen@gentoo.org> | 2023-10-12 15:52:36 -0400 |
commit | 37a5ee017ab4bc745fdff6626603ceb5ebbdd129 (patch) | |
tree | f72e7e05d1201d272225099817c4a4467c6f21e8 /dev-qt | |
parent | dev-python/django-registration: add 3.4 (diff) | |
download | gentoo-37a5ee017ab4bc745fdff6626603ceb5ebbdd129.tar.gz gentoo-37a5ee017ab4bc745fdff6626603ceb5ebbdd129.tar.bz2 gentoo-37a5ee017ab4bc745fdff6626603ceb5ebbdd129.zip |
dev-qt/qtsvg: backport qt6.6 fix for crash with invalid SVGs
Bug: https://bugs.gentoo.org/915582
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'dev-qt')
-rw-r--r-- | dev-qt/qtsvg/files/qtsvg-6.6.0-invalid-svg-crash.patch | 18 | ||||
-rw-r--r-- | dev-qt/qtsvg/qtsvg-6.6.0-r1.ebuild (renamed from dev-qt/qtsvg/qtsvg-6.6.0.ebuild) | 4 |
2 files changed, 22 insertions, 0 deletions
diff --git a/dev-qt/qtsvg/files/qtsvg-6.6.0-invalid-svg-crash.patch b/dev-qt/qtsvg/files/qtsvg-6.6.0-invalid-svg-crash.patch new file mode 100644 index 000000000000..950cac7d679e --- /dev/null +++ b/dev-qt/qtsvg/files/qtsvg-6.6.0-invalid-svg-crash.patch @@ -0,0 +1,18 @@ +https://bugs.gentoo.org/915582 +https://bugreports.qt.io/browse/QTBUG-117944 +https://codereview.qt-project.org/c/qt/qtsvg/+/510692 +https://github.com/qt/qtsvg/commit/effc44495a33babd4cf7a2044123f420e6b3da1c +From: Paul Olav Tvete <paul.tvete@qt.io> +Date: Tue, 10 Oct 2023 10:14:22 +0200 +Subject: [PATCH] Fix nullptr dereference with invalid SVG +--- a/src/svg/qsvghandler.cpp ++++ b/src/svg/qsvghandler.cpp +@@ -3606,6 +3606,8 @@ void QSvgHandler::init() + + static bool detectCycles(const QSvgNode *node, QList<const QSvgUse *> active = {}) + { ++ if (Q_UNLIKELY(!node)) ++ return false; + switch (node->type()) { + case QSvgNode::DOC: + case QSvgNode::G: diff --git a/dev-qt/qtsvg/qtsvg-6.6.0.ebuild b/dev-qt/qtsvg/qtsvg-6.6.0-r1.ebuild index e1b14151f896..4ee65f5cee0e 100644 --- a/dev-qt/qtsvg/qtsvg-6.6.0.ebuild +++ b/dev-qt/qtsvg/qtsvg-6.6.0-r1.ebuild @@ -16,3 +16,7 @@ RDEPEND=" sys-libs/zlib:= " DEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}"/${P}-invalid-svg-crash.patch +) |