[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)
committerLisandro Damián Nicanor Pérez Meyer <lisandro@debian.org>
Mon, 14 Sep 2020 13:56:35 +0000 (14:56 +0100)
commit3ab126547b94196e376dce46f825c206e7330c47
tree12e2605bc6228b2dde2a5d10e75a256c0f478611
parent252dc5f8ea7e57bb52be8d37e811424cbe4b09ce
[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