[PATCH] Fix crash in qppmhandler for certain malformed image files
authorEirik Aavitsland <eirik.aavitsland@qt.io>
Thu, 2 Aug 2018 11:11:20 +0000 (13:11 +0200)
committerAdrian Bunk <bunk@debian.org>
Sun, 20 Sep 2020 19:01:50 +0000 (20:01 +0100)
commitcbfbdc15b1f1dd3797308c6cac413f8eb71a805f
tree56757ba51962c78d32cd6858b1d6c81c47586950
parent0f70ba6009cb8dcffc88a6a6513693273fcd711e
[PATCH] Fix crash in qppmhandler for certain malformed image files

The ppm format specifies that the maximum color value field must be
less than 65536. The handler did not enforce this, leading to
potentional overflow when the value was used in 16 bits context.

Task-number: QTBUG-69449
Change-Id: Iea7a7e0f8953ec1ea8571e215687d12a9d77e11c
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Gbp-Pq: Name CVE-2018-19872.patch
src/gui/image/qppmhandler.cpp