qt5base-lts/tests/auto/gui/image
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
..
qicoimageformat Merge remote-tracking branch 'origin/5.6' into 5.7 2016-05-19 12:55:27 +02:00
qicon Fix compilation without process support 2016-05-20 10:37:18 +00:00
qimage Fix the JPEG EXIF reader to deal with some broken/corrupt files 2016-12-01 08:17:04 +00:00
qimageiohandler Updated license headers 2016-01-21 18:55:18 +00:00
qimagereader Remove the traces of the discontinued android-no-sdk platform 2016-03-30 10:12:34 +00:00
qimagewriter Merge remote-tracking branch 'origin/5.6' into 5.7 2016-08-13 01:05:02 +02:00
qmovie Updated license headers 2016-01-21 18:55:18 +00:00
qpicture Updated license headers 2016-01-21 18:55:18 +00:00
qpixmap Merge remote-tracking branch 'origin/5.6' into 5.7 2016-04-04 08:59:18 +02:00
qpixmapcache Updated license headers 2016-01-21 18:55:18 +00:00
image.pro Check for network module when building according auto tests 2013-02-19 19:20:53 +01:00