php.net |  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
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 http://is-mirror.kjarri.net/files/DSCF0085.JPG (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:
./configure 
--x-libraries=/usr/X11/lib/ 
--x-includes=/usr/X11/include/ 
--with-mysql=/superstore/progs/mysql/ 
--with-apxs=/superstore/progs/apache/bin/apxs 
--enable-trans-sid 
--with-pgsql=/superstore/progs/pgsql/ 
--with-interbase=/superstore/progs/interbase/ 
--enable-ftp 
--enable-exif 
--with-gd=/usr/local/
--with-ttf=/usr/local/
--enable-gd-imgstrttf 
--with-xpm-dir=/usr/local/ 
--with-jpeg-dir=/usr/local/ 
--with-sybase=/usr/local/freetds 
--with-png-dir=/usr/local/ 
--with-zip 
--with-zziplib=/usr/local/ 
--with-zlib-dir=/usr/local/

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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

--Jani

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 05 05:01:31 2024 UTC