Add test for invalid exif data

Task-number: QTBUG-46870
Change-Id: Idfde92ca12336c6432798b4517e244c2f5a5ba4d
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
bb10
Rainer Keller 2015-06-29 10:16:36 +02:00 committed by Allan Sandfeld Jensen
parent 756266d015
commit 954f0d9397
2 changed files with 8 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

View File

@ -185,6 +185,7 @@ private slots:
void exifOrientation();
void exif_QTBUG45865();
void exif_invalid_data_QTBUG46870();
void cleanupFunctions();
@ -2872,6 +2873,13 @@ void tst_QImage::exif_QTBUG45865()
QCOMPARE(image.size(), QSize(5, 8));
}
void tst_QImage::exif_invalid_data_QTBUG46870()
{
QImage image;
QVERIFY(image.load(m_prefix + "jpeg_exif_invalid_data_QTBUG-46870.jpg"));
QVERIFY(!image.isNull());
}
static void cleanupFunction(void* info)
{
bool *called = static_cast<bool*>(info);