]> granicus.if.org Git - php/commit
Fixed bug #68547 (Exif Header component value check error) (Patch by sjh21a at gmail...
authorKalle Sommer Nielsen <kalle@php.net>
Fri, 5 Aug 2016 08:03:14 +0000 (10:03 +0200)
committerKalle Sommer Nielsen <kalle@php.net>
Fri, 5 Aug 2016 08:03:14 +0000 (10:03 +0200)
commit1740823864fe22f469642c68c5bf389d1a30f43c
tree3586712f215380048451f46552db7f596e8860e9
parentd9e4d5116b94d3d9ff9af4529813e9497b428c34
Fixed bug #68547 (Exif Header component value check error) (Patch by sjh21a at gmail dot com)

This patch changes processing a little and causes some crafted tags to not be parsed and generate a warning.

This is a slight BC break from earlier versions, since it will no longer return the tags of that it was mismatching (see bug68799.phpt), namely the "WINXP" section and the "Author" tag is no longer returned due to this. Although this BC break is merely only for crafted tags, this can also have some real life effects on pictures re-saved from editors that can cause bad exif data writes, so lets keep it here.
NEWS
ext/exif/exif.c
ext/exif/tests/bug68547.jpg [new file with mode: 0644]
ext/exif/tests/bug68547.phpt [new file with mode: 0644]
ext/exif/tests/bug68799.phpt
ext/exif/tests/bug72094.phpt