Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
4.4.0
-
None
-
a041e4eca3467c1baa6245b6fb47def127f30f41
Description
In many of the functions in QImage where a new QImage is created,
QIMAGE_SANITYCHECK_MEMORY(image) is called afterwards to check if it is a null image.
In
QImage QImage::rgbSwapped() and QImage::mirrored()
QIMAGE_SANITYCHECK_MEMORY()
is not called after a new QImage is created.
When some functions return a null image, for example when there is not enough memory to create the image it is easy to get an exception or a crash.