Bug #75785 [NEW]: Many errors from exif_read_data

From: Date: Tue, 09 Jan 2018 11:04:37 +0000
Subject: Bug #75785 [NEW]: Many errors from exif_read_data
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-213439@lists.php.net to get a copy of this message
From: opajaap at opajaap dot nl Operating system: unknown PHP version: 7.2.1 Package: EXIF related Bug Type: Bug Bug description:Many errors from exif_read_data Description: ------------ In version 7.2.0 i get very many errors from exif_read_data(). To me it looks very unlikely that so many (but not all) of those .jpg files have corrupt exif data. A few examples: 09.01.2018 11:37:06 2013.opajaap.nl [client 213.10.98.0] PHP Warning: exif_read_data(42996.jpg): corrupt EXIF header: maximum directory nesting level reached in /mnt/web208/b3/15/51893315/htdocs/opajaap/2013/wp-content/plugins/wp-photo-album-plus/wppa-maintenance.php on line 1479, referer: https://2013.opajaap.nl/wp-admin/admin.php?page=wppa_options 09.01.2018 11:37:28 2013.opajaap.nl [client 213.10.98.0] PHP Warning: exif_read_data(43168.jpg): Illegal IFD size: 2 + 0x2000*12 = 0x18002 > 0xA650 in /mnt/web208/b3/15/51893315/htdocs/opajaap/2013/wp-content/plugins/wp-photo-album-plus/wppa-maintenance.php on line 1479, referer: https://2013.opajaap.nl/wp-admin/admin.php?page=wppa_options 09.01.2018 11:37:35 2013.opajaap.nl [client 213.10.98.0] PHP Warning: exif_read_data(43186.jpg): Illegal IFD size: 2 + 0x0A00*12 = 0x7802 > 0x0C00 in /mnt/web208/b3/15/51893315/htdocs/opajaap/2013/wp-content/plugins/wp-photo-album-plus/wppa-maintenance.php on line 1479, referer: https://2013.opajaap.nl/wp-admin/admin.php?page=wppa_options 09.01.2018 11:37:42 2013.opajaap.nl [client 213.10.98.0] PHP Warning: exif_read_data(43279.jpg): Process tag(x0000=UndefinedTa): Illegal format code 0x0000, suppose BYTE in /mnt/web208/b3/15/51893315/htdocs/opajaap/2013/wp-content/plugins/wp-photo-album-plus/wppa-maintenance.php on line 1479, referer: https://2013.opajaap.nl/wp-admin/admin.php?page=wppa_options 09.01.2018 11:37:42 2013.opajaap.nl [client 213.10.98.0] PHP Warning: exif_read_data(43279.jpg): Process tag(x0000=UndefinedTa): Illegal components(0) in /mnt/web208/b3/15/51893315/htdocs/opajaap/2013/wp-content/plugins/wp-photo-album-plus/wppa-maintenance.php on line 1479, referer: https://2013.opajaap.nl/wp-admin/admin.php?page=wppa_options 09.01.2018 11:37:49 2013.opajaap.nl [client 213.10.98.0] PHP Warning: exif_read_data(43303.jpg): Process tag(x0211=YCbCrCoeffi): Illegal components(0) in /mnt/web208/b3/15/51893315/htdocs/opajaap/2013/wp-content/plugins/wp-photo-album-plus/wppa-maintenance.php on line 1479, referer: https://2013.opajaap.nl/wp-admin/admin.php?page=wppa_options 09.01.2018 11:37:56 2013.opajaap.nl [client 213.10.98.0] PHP Warning: exif_read_data(43355.jpg): Illegal IFD size: 2 + 0x4F00*12 = 0x3B402 > 0x1C7C in /mnt/web208/b3/15/51893315/htdocs/opajaap/2013/wp-content/plugins/wp-photo-album-plus/wppa-maintenance.php on line 1479, referer: https://2013.opajaap.nl/wp-admin/admin.php?page=wppa_options 09.01.2018 11:37:56 2013.opajaap.nl [client 213.10.98.0] PHP Warning: exif_read_data(43356.jpg): Illegal IFD size: 2 + 0x4F00*12 = 0x3B402 > 0x1C7C in /mnt/web208/b3/15/51893315/htdocs/opajaap/2013/wp-content/plugins/wp-photo-album-plus/wppa-maintenance.php on line 1479, referer: https://2013.opajaap.nl/wp-admin/admin.php?page=wppa_options 09.01.2018 11:37:56 2013.opajaap.nl [client 213.10.98.0] PHP Warning: exif_read_data(43357.jpg): Illegal IFD size: 2 + 0x4F00*12 = 0x3B402 > 0x1C7C in /mnt/web208/b3/15/51893315/htdocs/opajaap/2013/wp-content/plugins/wp-photo-album-plus/wppa-maintenance.php on line 1479, referer: https://2013.opajaap.nl/wp-admin/admin.php?page=wppa_options 09.01.2018 11:37:56 2013.opajaap.nl [client 213.10.98.0] PHP Warning: exif_read_data(43358.jpg): Illegal IFD size: 2 + 0x4F00*12 = 0x3B402 > 0x1C7C in /mnt/web208/b3/15/51893315/htdocs/opajaap/2013/wp-content/plugins/wp-photo-album-plus/wppa-maintenance.php on line 1479, referer: https://2013.opajaap.nl/wp-admin/admin.php?page=wppa_options Test script: --------------- // Get exif data $exif = exif_read_data( $file, 'EXIF' ); // $file contains the full path to a .jpg file. -- Edit bug report at https://bugs.php.net/bug.php?id=75785&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=75785&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=75785&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=75785&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=75785&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=75785&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=75785&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=75785&r=needscript Try newer version: https://bugs.php.net/fix.php?id=75785&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=75785&r=support Expected behavior: https://bugs.php.net/fix.php?id=75785&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=75785&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=75785&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=75785&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75785&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=75785&r=dst IIS Stability: https://bugs.php.net/fix.php?id=75785&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=75785&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=75785&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=75785&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=75785&r=mysqlcfg

« previous php.bugs (#213439) next »