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)
committerMike Gabriel <sunweaver@debian.org>
Tue, 7 May 2019 07:14:21 +0000 (08:14 +0100)
commit522840fe1268b19a1ebd9b8de1f84c037100cb9f
treee71cce960d90753720805963b46651dfee675c40
parentad4da051b6759ed4b47a07dc1fa73b76aef130c5
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