[PATCH] 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)
committerAdrian Bunk <bunk@debian.org>
Sun, 20 Sep 2020 19:01:50 +0000 (20:01 +0100)
commit0f70ba6009cb8dcffc88a6a6513693273fcd711e
tree8b1054ae012ed9c6dae98ae9eebe54e6e80c455f
parent9ba8ed9e0bdeb627f8964347665d3e7079f4f95b
[PATCH] 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