bmp image handler: check for out of range image size
authorEirik Aavitsland <eirik.aavitsland@qt.io>
Tue, 4 Sep 2018 09:08:06 +0000 (11:08 +0200)
committerMike Gabriel <sunweaver@debian.org>
Tue, 7 May 2019 07:14:21 +0000 (08:14 +0100)
commitad4da051b6759ed4b47a07dc1fa73b76aef130c5
treecd527456e8cbf4357083dfb0b09fd60a5bb94626
parent4a32f56e9b13eb8c8a533bd90a54b97a1cff3fde
bmp image 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: I874e04f3b43122d73f8e58c7a5bcc4a741b68264
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Gbp-Pq: Name cve_2018-19873.patch
src/gui/image/qbmphandler.cpp