Add test for invalid exif data
Task-number: QTBUG-46870 Change-Id: Idfde92ca12336c6432798b4517e244c2f5a5ba4d Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>bb10
parent
756266d015
commit
954f0d9397
Binary file not shown.
|
After Width: | Height: | Size: 14 KiB |
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue