diff options
| author | Samuel Gaist <samuel.gaist@idiap.ch> | 2025-05-24 21:07:37 +0200 |
|---|---|---|
| committer | Jukka Jokiniva <jukka.jokiniva@qt.io> | 2025-06-27 15:21:45 +0000 |
| commit | f12d046383decf8f468de62732c9cff7d4303cbf (patch) | |
| tree | 2803b5a32d909000907170bb56112b0fc4001544 /src/corelib/kernel/qobject.cpp | |
| parent | 2f221dbb376ac0fa1b1198b112cfc439137a0c13 (diff) | |
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.10 6.9 6.8 6.5
Change-Id: I435a5768fbb7d3e6cb84d578703e7dde2e39a27e
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/corelib/kernel/qobject.cpp')
0 files changed, 0 insertions, 0 deletions
