|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11784 read_exif_data fails on big thumbnails
Submitted: 2001-06-28 13:13 UTC Modified: 2005-02-01 22:52 UTC
From: kjarri at theriak dot is Assigned:
Status: Closed Package: EXIF related
PHP Version: 4.0.6 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: kjarri at theriak dot is
New email:
PHP Version: OS:


 [2001-06-28 13:13 UTC] kjarri at theriak dot is
I'm having problem reading exif data from pictures produced by Fujifilm FinePix6800 ZOOM. While reading exif data from the jpegs i get fatal error in PHP complaining about illegal thumbnailsize.

After reading the source for the exif module i saw a notice that mentioned that thumbnails embedded in the exif header are not allowed to exceed 64k in size. Now i'm not sure about the specification of the picture in question, the embedded thumbnail might exceed this limit, but a sample picture that produces the error can be downloaded from (around 500k in size).

It would be nice if the read_exif_data() function could handle images like this and return all other data that is correct according to the EXIF specification instead of failing completely.

My PHP setup:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-08-03 21:53 UTC]
Fixed in CVS. If thumbnail is invalid, a warning is produced
but all the other data is still returned.


PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Fri Dec 08 16:01:26 2023 UTC