[PATCH] Add clamping to QColorTransferGenericFunction
authorSamuel Gaist <samuel.gaist@idiap.ch>
Sat, 24 May 2025 19:07:37 +0000 (21:07 +0200)
committerPatrick Franz <deltaone@debian.org>
Fri, 18 Jul 2025 13:28:20 +0000 (15:28 +0200)
commit76291eb59a14b2b9e90ea5b056dc3f59e1c340b6
tree9c7e401960a647b57ece94082338e76d341fb461
parentb7eb2c781c1cdbd0dbb6cfbb204d3876fc0ae5c1
[PATCH] Add clamping to QColorTransferGenericFunction

This ensures that the inputs are within range for the use of these
function.

Depending on the values passed, they can trigger FE_INVALID errors
and thus NaN as return values.

This can happen for example when feeding an invalid ICC profile to
QColorSpace::fromIccProfile.

Credit to OSS-Fuzz

Fixes: QTBUG-137159
Origin: upstream, https://download.qt.io/official_releases/qt/6.8/CVE-2025-5992-qtbase-6.8.patch

Gbp-Pq: Name upstream_cve-2025-5992_input_range_qcolortransformation.diff
src/gui/painting/qcolortransfergeneric_p.h