qt5base-lts/tests/auto/gui
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
..
image Fix possible crash in QImage::pixel() 2016-03-31 08:54:03 +00:00
itemmodels Merge remote-tracking branch 'origin/5.5' into dev 2015-07-01 11:05:26 +02:00
kernel tst_QKeyEvent: Fix MSVC warning about 64bit shift. 2016-03-08 14:57:14 +00:00
math3d tests/auto/gui: Replace Q[TRY]_VERIFY(a == b) by Q[TRY]_COMPARE(a, b). 2015-07-31 08:29:15 +00:00
painting Fix rounding error in fetchTransformedBilinear 2016-02-02 22:47:10 +00:00
qopengl Merge remote-tracking branch 'origin/5.5' into 5.6 2016-01-19 10:03:01 +01:00
qopenglconfig Tests: Harmonize code checking on platform name. 2015-09-24 07:49:30 +00:00
text Enable most of tst_qstatictext on non-developer builds 2016-03-10 15:45:41 +00:00
util tst_qdesktopservices: Use regular expression to suppress error message. 2015-10-02 09:34:41 +00:00
gui.pro Add qopenglconfig test. 2015-02-02 23:05:41 +00:00