diff options
author | Robert Löhning <robert.loehning@qt.io> | 2021-06-07 19:42:19 +0200 |
---|---|---|
committer | Robert Löhning <robert.loehning@qt.io> | 2021-06-08 18:46:34 +0200 |
commit | 7661fdce0a1a502b1d2f6a89b0d89234b12aabb9 (patch) | |
tree | 4fcc3acdac39dfd580baf4b6c8adeae6007b439e /src/gui/painting | |
parent | 3d7bdf0d61699cb7fdfcef7fe7b546e3167723b2 (diff) |
QIcc: Update test for invalid values
This should have happened when changing the code in
f493d41722fc76a04f699ea26128fdf3d215d913
Fixes oss-fuzz issue 31633.
Pick-to: 5.15 6.1
Change-Id: I7945c3f90651f8fa04df20fbaf0b0c7f68619407
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/gui/painting')
-rw-r--r-- | src/gui/painting/qicc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/painting/qicc.cpp b/src/gui/painting/qicc.cpp index 8196ccc595..8f6a204caa 100644 --- a/src/gui/painting/qicc.cpp +++ b/src/gui/painting/qicc.cpp @@ -742,7 +742,7 @@ bool fromIccProfile(const QByteArray &data, QColorSpace *colorSpace) QColorVector whitePoint; if (!parseXyzData(data, tagIndex[Tag::wtpt], whitePoint)) return false; - if (!qFuzzyCompare(whitePoint.y, 1.0f) || (1.0f + whitePoint.z - whitePoint.x) == 0.0f) { + if (!qFuzzyCompare(whitePoint.y, 1.0f) || (1.0f + whitePoint.z + whitePoint.x) == 0.0f) { qCWarning(lcIcc) << "fromIccProfile: Invalid ICC profile - gray white-point not normalized"; return false; } |