TGA handler: check for out of range image size
authorEirik Aavitsland <eirik.aavitsland@qt.io>
Fri, 24 Aug 2018 10:03:00 +0000 (12:03 +0200)
committerFelix Geyer <fgeyer@debian.org>
Sun, 14 Jul 2019 10:19:27 +0000 (11:19 +0100)
commite58d5061d1bc9fa8099fe25db47217a6ab6e41ff
treefdfa40680e1d5817adf882edc9762205c5136014
parent9c785c2dae2fa6fb6f0a0b57e7c2c5da2375777a
TGA handler: check for out of range image size

Make the decoder fail early to avoid spending time and memory on
attempting to decode a corrupt image file.

Change-Id: Iac35e72de743f412a65d11c58fe7faa275dc4e41
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Gbp-Pq: Name CVE-2018-19871.patch
src/plugins/imageformats/tga/qtgafile.cpp