qt5base-lts/tests/auto/gui/image
Eskil Abrahamsen Blomfeldt a4e2f2e687 Fix possible crash in QImage::pixel()
QImage::pixel() assumed that the color table was valid
for the values in the bitmap. This was always wrong
for indexed images with explicit no color table set and
was wrong for mono images that were constructed from
preexisting data.

For mono images, we default to a black/white color table,
like we do when constructing with uninitialized data.

For indexed image, we always default to no color table,
but instead of crashing in pixel(), we warn and return
an undefined value.

[ChangeLog][QtGui][Image] Fixed possible crash in QImage::pixel()
for mono or indexed images.

Change-Id: Ieaf19c03984badddfd06e1855a7e287b862adc70
Task-number: QTBUG-50745
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
Reviewed-by: Gunnar Sletta <gunnar@sletta.org>
2016-03-31 08:54:03 +00:00
..
qicoimageformat Fix QImageReader::size() to return correct size for .ico files. 2015-09-17 16:30:37 +00:00
qicon Fix possible null pointer dereferences. 2015-12-02 16:32:12 +00:00
qimage Fix possible crash in QImage::pixel() 2016-03-31 08:54:03 +00:00
qimageiohandler Update copyright headers 2015-02-11 06:49:51 +00:00
qimagereader Crash fix: reject certain malformed bmp images 2016-02-05 04:14:35 +00:00
qimagewriter tst_qimagewriter: Fix leaking temporary files. 2016-03-02 14:53:08 +00:00
qmovie tests/auto/gui: Replace Q[TRY]_VERIFY(a == b) by Q[TRY]_COMPARE(a, b). 2015-07-31 08:29:15 +00:00
qpicture Fix boundingRect test in tst_QPicture 2015-06-16 06:11:58 +00:00
qpixmap Purge sRGB chunks from PNGs in tests. 2016-03-29 08:39:43 +00:00
qpixmapcache tests/auto/gui: Replace Q[TRY]_VERIFY(a == b) by Q[TRY]_COMPARE(a, b). 2015-07-31 08:29:15 +00:00
image.pro Check for network module when building according auto tests 2013-02-19 19:20:53 +01:00