path: root/src/gui/painting/qbackingstore.cpp
diff options
authorEirik Aavitsland <>2016-02-02 14:06:28 +0100
committerJani Heikkinen <>2016-02-05 04:14:35 +0000
commite4f71b0cb5e52b4762c4c1d681eff08376e7bc0b (patch)
tree7251f6ea5fd0582a1d951a3378dc6bad89aba784 /src/gui/painting/qbackingstore.cpp
parent786d23bb4966b6697ac04c43158e2312d898e133 (diff)
Crash fix: reject certain malformed bmp images
A malformed bmp file header could specify a negative color table size. The bmp handler would then return a QImage that claimed to be valid, but actually was invalid, having an empty color table. This would cause crash later, e.g. when attempting to paint it. Change-Id: I7df7c40867557a82dbcee44c7de061226ff232c0 Reviewed-by: Lars Knoll <> Reviewed-by: Richard J. Moore <>
Diffstat (limited to 'src/gui/painting/qbackingstore.cpp')
0 files changed, 0 insertions, 0 deletions