qt5base-lts/tests/auto/gui/image/qimage
Eirik Aavitsland 509bc7e59c Fix another crash when converting format of buffer-created QImage
This continues 68762151db

When doing format conversion, the optimized inplace codepath did not
check if the image data was external, i.e. if the QImage had been
created by the constructor taking an existing external buffer.

The previous commit fixed the readonly case. But in the case of the
QImage constructor taking non-const uchar*, data will be read-write,
but still external. This would of course crash if the converter tries
to realloc it.

Task-number: QTBUG-44610
Change-Id: I94d275d464e8af221682b538fc3e4897a59c061e
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
2015-03-04 10:53:00 +00:00
..
images JPEG: Fix reading of EXIF orientation. 2015-01-06 14:26:00 +01:00
.gitignore Moved gui autotests into new directory structure 2011-09-01 10:59:49 +02:00
qimage.pro Android: Fix qimage test. 2015-01-08 10:09:39 +01:00
qimage.qrc Android: Fix qimage test. 2015-01-08 10:09:39 +01:00
tst_qimage.cpp Fix another crash when converting format of buffer-created QImage 2015-03-04 10:53:00 +00:00