Bug #78701 [Com]: exif_read_data: corrupt EXIF header: maximum directory nesting level reached

From: Date: Sun, 29 Dec 2019 02:03:20 +0000
Subject: Bug #78701 [Com]: exif_read_data: corrupt EXIF header: maximum directory nesting level reached
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-224580@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=78701&edit=1 ID: 78701 Comment by: gino0631 at centaurus dot cloud Reported by: gino0631 at centaurus dot cloud Summary: exif_read_data: corrupt EXIF header: maximum directory nesting level reached Status: Open Type: Bug Package: EXIF related Operating System: CentOS PHP Version: 7.3.11 Block user comment: N Private report: N New Comment: Same with PHP 7.2.26 and 7.3.13. Previous Comments: ------------------------------------------------------------------------ [2019-10-23 20:36:02] gino0631 at centaurus dot cloud With PHP 7.2.24 and 7.3.11, the results are the same. ------------------------------------------------------------------------ [2019-10-20 22:12:32] gino0631 at centaurus dot cloud wget https://maps.gisforthought.com/Photos/12_Adventure_Duck.jpg echo '<?php $exif = exif_read_data("12_Adventure_Duck.jpg");' > test.php /opt/remi/php71/root/bin/php --version PHP 7.1.32 (cli) (built: Aug 28 2019 12:57:54) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies /opt/remi/php71/root/bin/php test.php # No error /opt/remi/php72/root/bin/php --version PHP 7.2.23 (cli) (built: Sep 25 2019 07:56:34) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies /opt/remi/php72/root/bin/php test.php PHP Warning: exif_read_data(12_Adventure_Duck.jpg): corrupt EXIF header: maximum directory nesting level reached in /tmp/test.php on line 1 /opt/remi/php73/root/bin/php --version PHP 7.3.10 (cli) (built: Sep 24 2019 09:20:18) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.3.10, Copyright (c) 1998-2018 Zend Technologies with Zend OPcache v7.3.10, Copyright (c) 1999-2018, by Zend Technologies /opt/remi/php73/root/bin/php test.php PHP Warning: exif_read_data(12_Adventure_Duck.jpg): corrupt EXIF header: maximum directory nesting level reached in /tmp/test.php on line 1 ------------------------------------------------------------------------ [2019-10-20 15:36:25] cmb@php.net With PHP 7.3 (current HEAD) on Windows I get: PHP Warning: exif_read_data(78701.php): File not supported in %s on line %d ------------------------------------------------------------------------ [2019-10-20 14:50:16] girgias@php.net Related To: Bug #75424 ------------------------------------------------------------------------ [2019-10-20 14:43:44] gino0631 at centaurus dot cloud Description: ------------ exif_read_data with the following image: https://maps.gisforthought.com/Photos/12_Adventure_Duck.jpg produces: "exif_read_data(12_Adventure_Duck.jpg): corrupt EXIF header: maximum directory nesting level reached This looks similar to: https://bugs.php.net/bug.php?id=75424 but opening a new issue as requested in the comment by @requinix. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=78701&edit=1

« previous php.bugs (#224580) next »