Bug #50660 [Com]: exif_read_data(): Illegal IFD offset (works fine with other exif readers)

From: Date: Wed, 26 Oct 2016 08:14:45 +0000
Subject: Bug #50660 [Com]: exif_read_data(): Illegal IFD offset (works fine with other exif readers)
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-205019@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=50660&edit=1 ID: 50660 Comment by: mellfotostudio at gmail dot com Reported by: skinny dot bravo at gmail dot com Summary: exif_read_data(): Illegal IFD offset (works fine with other exif readers) Status: Verified Type: Bug Package: EXIF related Operating System: Linux PHP Version: 5.*, 6 Assigned To: kalle Block user comment: N Private report: N New Comment: This issue exists on PHP version 5.6.27 on Mac OS X via MacPorts. I can vouch for the images coming off directly from the camera. Other programs (Photoshop, Lightroom, Preview) can read EXIF data just fine off the same files. Warning: read_exif_data(IMG_8456.JPG): IFD data bad offset: 0xFFFFFC72 length 0x1E68 in {php script file} Previous Comments: ------------------------------------------------------------------------ [2016-08-14 04:22:24] php-bugs at lists dot php dot net No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Re-Opened". Thank you. ------------------------------------------------------------------------ [2016-08-05 18:31:02] support at imgsrc dot ru Can you please try http://o1.eu.is.pp.ru/v/vahmurka/3/16095163cDU.jpg http://o1.eu.is.pp.ru/v/vahmurka/1/16095161rno.jpg ------------------------------------------------------------------------ [2016-08-05 06:13:26] kalle@php.net Hi! I know this is an old report, could you please reupload the images somewhere? For some reason my ISP have blocked the domain and I do not have a way currently to obtain them from the outside. thanks! ------------------------------------------------------------------------ [2011-01-31 07:36:37] mjk at emmjaykay dot org The issue stems from exif.c's exif_process_IFD_in_JPEG() function where it calculates NextDirOffset. If this means what I think it does, for EXIF_IFD and IFD_GPS, there is no next IFD and no further parsing should take place. Right now, it parses into the string for the next entry (2009...) I am not sure if this is correct since I am no expert on EXIF. The output of var_dump seems to be still in-correct, though. I do not know if this is a separate issue or something I introduced with this patch. ------------------------------------------------------------------------ [2010-01-06 12:49:45] skinny dot bravo at gmail dot com Sorry, - php5.2-201001041530 produces the same result + php5.2-201001041530 produces the same result as 5.2.12 below ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=50660 -- Edit this bug report at https://bugs.php.net/bug.php?id=50660&edit=1

« previous php.bugs (#205019) next »