qt6-bb10/tests/auto/gui
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 Fix the JPEG EXIF reader to deal with some broken/corrupt files 2016-12-01 08:17:04 +00:00
itemmodels QStandardItemModel: Reset the flags on clear() 2016-02-17 11:39:13 +00:00
kernel Blacklist modalWindowModallity on macOS aka “osx” 2016-09-15 14:52:10 +00:00
math3d Updated license headers 2016-01-21 18:55:18 +00:00
painting Merge remote-tracking branch 'origin/5.6' into 5.7 2016-08-10 17:43:13 +02:00
qopengl Merge "Merge remote-tracking branch 'origin/5.6' into dev" into refs/staging/dev 2016-01-26 11:27:37 +00:00
qopenglconfig Merge remote-tracking branch 'origin/5.6' into 5.7 2016-08-25 16:12:11 +02:00
text Merge remote-tracking branch 'origin/5.6' into 5.7 2016-10-01 22:15:55 +02:00
util Updated license headers 2016-01-21 18:55:18 +00:00
gui.pro Add qopenglconfig test. 2015-02-02 23:05:41 +00:00