Bug #75424 [NoF]: exif_read_data(image.jpg): corrupt EXIF header: maximum directory nesting

From: Date: Thu, 29 Nov 2018 16:59:26 +0000
Subject: Bug #75424 [NoF]: exif_read_data(image.jpg): corrupt EXIF header: maximum directory nesting
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-218215@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=75424&edit=1

 ID:                 75424
 Updated by:         requinix@php.net
 Reported by:        Heikki dot Vesanto at gmail dot com
 Summary:            exif_read_data(image.jpg): corrupt EXIF header:
                     maximum directory nesting
 Status:             No Feedback
 Type:               Bug
 Package:            EXIF related
 Operating System:   Ubuntu
 PHP Version:        7.2.0RC4
 Assigned To:        kalle
 Block user comment: N
 Private report:     N

 New Comment:

@gen: Please create a new bug report, making sure to upload the problematic image somewhere we can
get it.


Previous Comments:
------------------------------------------------------------------------
[2018-11-29 13:12:57] gen dot work at gmail dot com

print_r($exif) gives this array: https://gist.github.com/rybakit/a33b6262dfab412678f8a9559cd8ce15#file-exif_read_data-log

------------------------------------------------------------------------
[2018-11-29 13:00:26] gen dot work at gmail dot com

Same here.

PHP Version:

PHP 7.2.12 (cli) (built: Nov  6 2018 10:48:33) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.2.12, Copyright (c) 1999-2018, by Zend Technologies
    with Xdebug v2.6.1, Copyright (c) 2002-2018, by Derick Rethans


Error:

$ php -r 'exif_read_data("bad-exif.jpg");'

PHP Warning:  exif_read_data(lc-bad-exif.jpg): corrupt EXIF header: maximum directory nesting level
reached in Command line code on line 1
PHP Stack trace:
PHP   1. {main}() Command line code:0
PHP   2. exif_read_data() Command line code:1

Warning: exif_read_data(lc-bad-exif.jpg): corrupt EXIF header: maximum directory nesting level
reached in Command line code on line 1

Call Stack:
    0.0003     397952   1. {main}() Command line code:0
    0.0003     397952   2. exif_read_data() Command line code:1

------------------------------------------------------------------------
[2018-03-17 12:49:54] roman dot kucera at gmail dot com

In PHP Version 7.2.3 it is ok.

------------------------------------------------------------------------
[2018-03-16 09:19:35] roman dot kucera at gmail dot com

same problem 
Warning: exif_read_data(01546_02_00.jpg): corrupt EXIF header: maximum directory nesting level
reached

with camera Canon 760D
PHP Version 7.0.5 and every earlier version

------------------------------------------------------------------------
[2017-11-12 04:22:38] 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.

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


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=75424


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


Thread (12 messages)

« previous php.bugs (#218215) next »