qt5base-lts/tests/auto/gui/image/qimagereader
Samuel Rødal af84313c62 Fixed crash in image reader when reading certain BMP files.
If the high bit in a mask is set, for instance if the mask is
0xff000000, and we shift it to the right by 24 positions, since the mask
was not declared as unsigned we ended up with a mask value of
0xffffffff. We then add 1 to this value and divide by the result,
causing a division by zero crash.

The masks need to be declared unsigned to prevent sign bit extension
when shifting right.

Task-number: QTBUG-29194
Change-Id: I79260344cebfbdd3ea86416a9c734dca76517999
Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
2013-02-06 09:59:56 +01:00
..
baseline Moved gui autotests into new directory structure 2011-09-01 10:59:49 +02:00
images Fixed crash in image reader when reading certain BMP files. 2013-02-06 09:59:56 +01:00
.gitignore Moved gui autotests into new directory structure 2011-09-01 10:59:49 +02:00
qimagereader.pro Set the Qt API level to compatibility mode in all tests. 2012-08-01 15:37:46 +02:00
qimagereader.qrc Fixed crash in image reader when reading certain BMP files. 2013-02-06 09:59:56 +01:00
tst_qimagereader.cpp Fixed crash in image reader when reading certain BMP files. 2013-02-06 09:59:56 +01:00