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