diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2021-01-26 12:07:53 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-01-27 15:35:17 +0000 |
commit | f16f194a62a775641e28ef820ca1523d26625395 (patch) | |
tree | 33644d73cb2c123aac5606479f40287a30909838 /src/gui/painting/qcolortrclut.cpp | |
parent | 54980200c79b466a276a4d3054390e4b3162e9ed (diff) |
Protect against sign-change of size on 32bit
Since qsizetype is signed and the profileSize unsigned, it can turn
negative circumventing the test here.
Fixes oss-fuzz issue 29278.
Change-Id: I1e211c78db6f4ff150613f52d8fc29807f0088ff
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
(cherry picked from commit 05741b404ad5a8f9a490191a347e67c61456a89c)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/gui/painting/qcolortrclut.cpp')
0 files changed, 0 insertions, 0 deletions