[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)
committerRoberto C. Sánchez <roberto@debian.org>
Tue, 22 Aug 2023 13:42:24 +0000 (14:42 +0100)
commit87b3a01335793ec75a6d88bfedbb679e8a5fb7a2
treef7ecba1e0aa114c4f9635cbe9cbc00e39e28c050
parentee9cc74a4c0f8c7eb8d2085b33bf43931815a998
[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