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