rich text: limit size of text object
Origin: upstream, https://code.qt.io/cgit/qt/qtdeclarative.git/commit/?id=
144ce34e846b3f73
Backported to 5.15 by Dmitry Shachnev: validate allocation manually
instead of using QImageIOHandler::allocateImage().
Last-Update: 2025-12-11
When we draw a text object, we need to store this in RAM
since the QTextObjectInterface is QPainter-based. This
could lead to over-allocation if the text object size
was set to be very large. We use the existing image IO
infrastructure for making sure allocations are within
reasonable (and configurable) limits.
Gbp-Pq: Name CVE-2025-12385-part2.patch
increase robustness of <img> tag in Text component
Origin: upstream, https://code.qt.io/cgit/qt/qtdeclarative.git/commit/?id=
4aaf9bf21f7cc69d
Last-Update: 2025-12-09
For Text.StyledText, there was no protection against <img> tags
with very large widths or heights. This could cause an application
to spend a very long time processing a layout and sometimes crash
if the size was too large.
We reuse the internal coord limit in QPainter as our maximum size
here, similar to what we do in Qt Svg for instance.
For Text.RichText, there were no issues in release builds, but in
debug builds, you could trigger an overflow assert when rounding
the number if it exceeded INT_MAX. For this, we simply cap the
width and height at INT_MAX.
Gbp-Pq: Name CVE-2025-12385.patch
QML: fortify qmlExecuteDeferred some more
Origin: upstream, https://code.qt.io/cgit/qt/qtdeclarative.git/commit/?id=
f69b6f0940b178b4
Last-Update: 2024-11-07
Gbp-Pq: Name fortify_qmlexecutedeferred.patch
QQuickItem: avoid emitting signals during destruction
Origin: upstream, https://code.qt.io/cgit/qt/qtdeclarative.git/commit/?id=
74873324bdf33997
Last-Update: 2023-02-26
If a QQuickItem is in the QQuickItem destructor, then it is both unsafe
and unnecessary to emit property change notifications. Connected code
can no longer rely on the state of the emitting object - if it was
originally a subclass of QQuickItem, then those subclass destructors
will already have run. And the QQuickItem destructor will also have
partially run, leaving the object in an undefined state.
Add a flag that we set to true at the top of ~QQuickItem, and don't emit
visibleChildrenChanged, parentChanged, visibleChanged, and
childrenChanged for items that are partially destroyed already.
[ChangeLog][Qt Quick][QQuickItem] QQuickItem no longer emits change
notifications for the parent, children, visible, and visibleChildren
properties while it is being destroyed.
Gbp-Pq: Name qquickitem_no_signals_on_destruction.patch
make tst_qmldiskcache::regenerateAfterChange() pass on big endian systems
Origin: upstream, https://code.qt.io/cgit/qt/qtdeclarative.git/commit/?id=
dab0d62b655ce9a4
Last-Update: 2021-02-11
Gbp-Pq: Name tst_qmldiskcache_big_endian.patch
qtdeclarative-opensource-src (5.15.17+dfsg-4) unstable; urgency=medium
* Backport upstream patches to fix CVE-2025-12385 (closes: #
1122055).
* Update symbols files from buildds’ logs.
[dgit import unpatched qtdeclarative-opensource-src 5.15.17+dfsg-4]