qt5base-lts/tests/auto/gui/image/qimage/images
Thiago Macieira a55f36211e Fix the JPEG EXIF reader to deal with some broken/corrupt files
We parse the EXIF header in order to get the proper orientation, so
let's be a bit more careful in what we accept. This patch adds better
handling for reading past the end of the stream, plus it limits the
number of IFDs read (to avoid processing too much data) and deals with a
pathological case of the EXIF file format: EXIF (due to its TIFF
origins) permits the offset to the next IFD to be backwards in the file,
which means it could result in a loop or pointing to plain corrupt data.
We disallow any backwards pointers, since it seems that's what other
decoders do (libexif, for example).

Change-Id: Iaeecaffe26af4535b416fffd1489332db92e3888
(cherry picked from 5.6 commit 02150649f95b8f46f826e6e002be3fa0b6d009bc)
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
2016-12-01 08:17:04 +00:00
..
image.bmp Moved gui autotests into new directory structure 2011-09-01 10:59:49 +02:00
image.gif Moved gui autotests into new directory structure 2011-09-01 10:59:49 +02:00
image.ico Moved gui autotests into new directory structure 2011-09-01 10:59:49 +02:00
image.jpg Moved gui autotests into new directory structure 2011-09-01 10:59:49 +02:00
image.pbm Moved gui autotests into new directory structure 2011-09-01 10:59:49 +02:00
image.pgm Moved gui autotests into new directory structure 2011-09-01 10:59:49 +02:00
image.png Moved gui autotests into new directory structure 2011-09-01 10:59:49 +02:00
image.ppm Moved gui autotests into new directory structure 2011-09-01 10:59:49 +02:00
image.xbm Moved gui autotests into new directory structure 2011-09-01 10:59:49 +02:00
image.xpm Moved gui autotests into new directory structure 2011-09-01 10:59:49 +02:00
jpeg_exif_invalid_data_back_pointers.jpg Fix the JPEG EXIF reader to deal with some broken/corrupt files 2016-12-01 08:17:04 +00:00
jpeg_exif_invalid_data_past_end.jpg Fix the JPEG EXIF reader to deal with some broken/corrupt files 2016-12-01 08:17:04 +00:00
jpeg_exif_invalid_data_QTBUG-46870.jpg Add test for invalid exif data 2015-07-17 11:37:02 +00:00
jpeg_exif_invalid_data_too_many_ifds.jpg Fix the JPEG EXIF reader to deal with some broken/corrupt files 2016-12-01 08:17:04 +00:00
jpeg_exif_invalid_data_too_many_tags.jpg Fix the JPEG EXIF reader to deal with some broken/corrupt files 2016-12-01 08:17:04 +00:00
jpeg_exif_orientation_value_1.jpg Optionally apply orientation on QImage read 2015-05-12 09:25:11 +00:00
jpeg_exif_orientation_value_2.jpg Optionally apply orientation on QImage read 2015-05-12 09:25:11 +00:00
jpeg_exif_orientation_value_3.jpg Optionally apply orientation on QImage read 2015-05-12 09:25:11 +00:00
jpeg_exif_orientation_value_4.jpg Optionally apply orientation on QImage read 2015-05-12 09:25:11 +00:00
jpeg_exif_orientation_value_5.jpg Optionally apply orientation on QImage read 2015-05-12 09:25:11 +00:00
jpeg_exif_orientation_value_6_motorola.jpg Optionally apply orientation on QImage read 2015-05-12 09:25:11 +00:00
jpeg_exif_orientation_value_6.jpg Optionally apply orientation on QImage read 2015-05-12 09:25:11 +00:00
jpeg_exif_orientation_value_7.jpg Optionally apply orientation on QImage read 2015-05-12 09:25:11 +00:00
jpeg_exif_orientation_value_8.jpg Optionally apply orientation on QImage read 2015-05-12 09:25:11 +00:00
jpeg_exif_QTBUG-45865.jpg Optionally apply orientation on QImage read 2015-05-12 09:25:11 +00:00