[qt/qt/qtimageformats]: Summary of bulk changes made

KDE Git Services - Bulk Change <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git repository change summary for qt/qt/qtimageformats
Pushed by mirror-service into branch 'dev'.
Changed from e4a5ff139d440034b44c075a58ad69ac34bf4206 to 3d4cb983875b013327c8100fb7d80c6276bfa31b
Acknowledgement was received that this change introduces only existing code that has been pushed to another public open source repository.

This change contains the following new commits:

Git commit bdda42e9ec461b17d873b2e11719dcd33577d032 by Marc Mutz on 24/07/2026 at 06:35..
QTiffHandler: Extract Method Private::readNextImage() from read()

This allows to centralize the Private::close() call in read(), instead
of having every early return execute it manually, which one return
already forgot (fixed in a prequel commit).

I also considered simply adding a qScopeGuard([&] { d->close(); }),
but a traditional Extract Method seemed more productive, as it reduces
the size of the already-large function and separates concerns, instead
of adding another few lines, and leaving concerns entangled.

Amends the addition of the TIFF plugin to qtimageformats, from qtbase
(5.0), but made more urgent by adding support for more and more
formats over time.

Pick-to: 6.12 6.11 6.8
Change-Id: I641103b2a2e2f22340066802d64d286d8242fde2
Reviewed-by: Allan Sandfeld Jensen <[email protected]>
https://invent.kde.org/qt/qt/qtimageformats/-/commit/bdda42e9ec461b17d873b2e11719dcd33577d032

Git commit 05a025e59d589cc0155714452b575998124cc4f2 by Marc Mutz on 24/07/2026 at 06:35..
QTiffHandler: make two of the Private methods static

These two don't access *this, so save the this pointer when calling
them. Since their callers are (again) on the same class as the
methods, no name qualification is needed.

Pick-to: 6.12 6.11 6.8
Change-Id: Ic6a52a6ea988febdc7b49900ad3b83fa7b02f172
Reviewed-by: Allan Sandfeld Jensen <[email protected]>
https://invent.kde.org/qt/qt/qtimageformats/-/commit/05a025e59d589cc0155714452b575998124cc4f2

Git commit 5b090f58ad4d21436673230bc9f397fa3d2ad057 by Eirik Aavitsland on 24/07/2026 at 11:33..
Harden the mng handler

mygetcanvasline() callback: Ensure that the iLinenr parameter from
libmng is in range. A buggy value could cause an OOB pointer to be
returned to libmng.

readData(): If a read on the input QIODevice should fail, the error
return value (-1) would be cast to unsigned and interpreted as a
successful 4GB read, potentially leading to OOB reading or crash.

myprocessterm(): Clamp a hypothetical >2B loop count to 2B, which is
anyway interpreted as infinite, instead of random negative int value.

writeData(): Not reachable since the handler is read-only, for
completeness only: same pattern as readData() above.

Pick-to: 6.12 6.11 6.8 6.5 5.15
Task-number: QTBUG-148330
Change-Id: I369f87617f294aeb7a303877050eac66105a43cf
Reviewed-by: Eskil Abrahamsen Blomfeldt <[email protected]>
https://invent.kde.org/qt/qt/qtimageformats/-/commit/5b090f58ad4d21436673230bc9f397fa3d2ad057

Git commit 3d4cb983875b013327c8100fb7d80c6276bfa31b by Eirik Aavitsland on 24/07/2026 at 11:33..
Harden the JP2 handler

Check input dimensions early: More than 4 color components, or image
dimenions outside int range, could lead to OOB writes.

Task-number: QTBUG-148331
Pick-to: 6.12 6.11 6.8 6.5 5.15
Change-Id: I36bc42d63cdc02a37a720533266e75289fa2a0a4
Reviewed-by: Eskil Abrahamsen Blomfeldt <[email protected]>
https://invent.kde.org/qt/qt/qtimageformats/-/commit/3d4cb983875b013327c8100fb7d80c6276bfa31b
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.