php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #43630 exif_read_data crashes on certain images
Submitted: 2007-12-18 21:08 UTC Modified: 2007-12-20 14:53 UTC
From: erin at thedalzells dot org Assigned:
Status: Not a bug Package: EXIF related
PHP Version: 6CVS-2007-12-18 (CVS) OS: ALL
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
32 + 13 = ?
Subscribe to this entry?

 
 [2007-12-18 21:08 UTC] erin at thedalzells dot org
Description:
------------
I have PHP version 5.2.3 and am getting an error on this image: http://thedalzells.org/photos/test/IMG_2982.JPG when I try to read the EXIF data with exif_read_data.

I have looked at the other bug reports and they all say fixed in head for version 5.2.1.

Reproduce code:
---------------
$file = '/home/.jeannie/edalzell/thedalzells.org/photos/test/IMG_2982.JPG';

$data = exif_read_data($file, "EXIF");


Expected result:
----------------
No errors

Actual result:
--------------
Warning: exif_read_data(IMG_2982.JPG) [exif_read_data]: Process tag(x0000=UndefinedTa): Illegal format code 0x0000, suppose BYTE in /home/.jeannie/edalzell/thedalzells.org/secret/core/core.functions.php(637) : eval()'d code on line 22

Warning: exif_read_data(IMG_2982.JPG) [exif_read_data]: Process tag(x0000=UndefinedTa): Illegal pointer offset(x6E004361 + x43616E6F = xB161B1D0 > x0207) in /home/.jeannie/edalzell/thedalzells.org/secret/core/core.functions.php(637) : eval()'d code on line 22

Warning: exif_read_data(IMG_2982.JPG) [exif_read_data]: Illegal IFD offset in /home/.jeannie/edalzell/thedalzells.org/secret/core/core.functions.php(637) : eval()'d code on line 22

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-12-20 14:53 UTC] helly@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

This simply tells you that your EXIF information is broken.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 12:01:27 2024 UTC