Samuel GaistandQt Cherry-pick Bot 6fa28d350c 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
Pick-to: 6.5
Change-Id: I435a5768fbb7d3e6cb84d578703e7dde2e39a27e
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
(cherry picked from commit f12d046383decf8f468de62732c9cff7d4303cbf)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit 8706176f8f78df9bf5cc560fb80aefa3fda01d98)
(cherry picked from commit f4822eec1855231f189e5348dffc29299f6edf93)
2025-06-28 07:20:54 +00:00
2024-11-07 08:38:49 +01:00
2025-06-27 08:29:09 +00:00
2025-04-29 21:08:00 +03:00
2025-04-29 21:08:00 +03:00
2025-03-25 12:39:21 +00:00
2024-02-02 15:23:02 +00:00
S
Description
No description provided
355 MiB
Languages
C++ 83.9%
HTML 5%
C 3.9%
CMake 3.5%
Objective-C++ 2%
Other 1.1%