diff options
author | Robert Löhning <robert.loehning@qt.io> | 2023-01-05 23:45:43 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2023-01-09 23:24:37 +0000 |
commit | 0527ceeba4205a5411eef4cfbb451a6a2719935d (patch) | |
tree | 974fe2bec8e5154db6f108d8ca89975887529b77 /src/plugins/imageformats/tiff/qtiffhandler.cpp | |
parent | 0257e9b968f7d8e47930203bf4d997071897dec3 (diff) |
TGA Plugin: Fix reading of CMapDepth
It's specified to be one byte but the old code used to read an int of
two bytes. Maybe this wasn't noticed because the following byte often
has a value of zero.
This fixes oss-fuzz issue 50741 which is an integer
overflow resulting from the too large value.
[ChangeLog] Fixed reading of TGA files with a non-zero X-origin
Change-Id: I989bffd0e4e03caf6737e1ce085247ed54e40db0
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
(cherry picked from commit feb7864054886bfb8a99d0f8e3a06ae120f97e62)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/plugins/imageformats/tiff/qtiffhandler.cpp')
0 files changed, 0 insertions, 0 deletions