Bug #73115 [Asn]: exif_read_data triggers warning on reading binary strings

From: Date: Sat, 08 Jul 2017 01:00:45 +0000
Subject: Bug #73115 [Asn]: exif_read_data triggers warning on reading binary strings
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-209914@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=73115&edit=1

 ID:                 73115
 Updated by:         kalle@php.net
 Reported by:        lee dot traynor at skeptic dot de
 Summary:            exif_read_data triggers warning on reading binary
                     strings
 Status:             Assigned
 Type:               Bug
 Package:            EXIF related
 Operating System:   Windows 10
 PHP Version:        7.0.11
 Assigned To:        kalle
 Block user comment: N
 Private report:     N

 New Comment:

Thank you very much Lee, I do some testings with this one!


Previous Comments:
------------------------------------------------------------------------
[2017-07-07 15:23:54] lee dot traynor at skeptic dot de

Try this image:

http://www.skeptic.de/blog/kvi/IMG_0001_D.JPG

I get:

PHP Warning:  exif_read_data(IMG_0001_D.JPG): IFD data bad offset: 0xFFFFFCAC length 0x08C8

------------------------------------------------------------------------
[2017-07-07 10:32:05] kalle@php.net

Hi

Could you please provide me with a test image?

Thanks

------------------------------------------------------------------------
[2016-09-19 15:12:33] lee dot traynor at skeptic dot de

Description:
------------
On encountering a binary string in exif data (e.g. makernote) exif_read_data () terminates reading,
returns the exif tags successfully read and issues a warning about unreadable data. This does not
occur in php <= 5.6.16, where the full set of exif tags is returned without warning. This bug may
be related to Bug #72819 EXIF thumbnails not read anymore.

Test script:
---------------
exif_read_data ("img_0001.jpg");

Expected result:
----------------
All exif tags returned without error.

Actual result:
--------------
Only exif tags prior to "makernote" (which is a binary string) are returned and a warning
issued.


------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=73115&edit=1


Thread (8 messages)

« previous php.bugs (#209914) next »