qt5base-lts/tests/auto/gui/image
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
..
qicoimageformat Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qicon Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qimage Clean up logical dpi for QImage. 2013-01-31 10:39:38 +01:00
qimageiohandler Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qimagereader Fixed crash in image reader when reading certain BMP files. 2013-02-06 09:59:56 +01:00
qimagewriter Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qmovie Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qpicture Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qpixmap Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qpixmapcache Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
image.pro QIcon: move back to QtGui 2012-05-18 21:42:38 +02:00