|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14026 read_exif_data crashes
Submitted: 2001-11-12 04:55 UTC Modified: 2005-02-01 22:59 UTC
Avg. Score:4.7 ± 0.5
Reproduced:3 of 3 (100.0%)
Same Version:0 (0.0%)
Same OS:3 (100.0%)
From: internet2 at mail dot com Assigned: helly (profile)
Status: Closed Package: EXIF related
PHP Version: 4.1.1 OS: Linux 2.4.5
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: internet2 at mail dot com
New email:
PHP Version: OS:


 [2001-11-12 04:55 UTC] internet2 at mail dot com
:) php-read_exif-data can read exif from Canon DC jpg file
:( php-read_exif-data cannot read exif from Ricoh DC jpg file

A server error got is -
FATAL:  emalloc():  Unable to allocate -2147483648 bytes

A example of Ricoh DC jpg at


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-11-12 04:59 UTC]
You might want to try a snapshot from AFAIK, this should be fixed.

 [2001-11-12 05:42 UTC] internet2 at mail dot com
Thx much prompt reply.
Tried PHP Version 4.2.0-dev at

Still got the same error with ricoh.jpg but ok with canon jpg.

 [2002-02-20 21:03 UTC] aaron at dogbert dot wsc dot ma dot edu
I have a Minolta DiMage7 DC

I am getting intermittent problems with
FATAL:  emalloc():  Unable to allocate -2147483648 bytes

read_exif_data will work with most pictures, but sometimes will produce the error.
 [2002-02-22 13:02 UTC]
Could you send me an image that has this problem?  Or point me at a URL where I can grab one?  It should be a simple fix if I can reproduce it locally here.
 [2002-03-02 12:14 UTC]
This bug has been fixed in CVS.

This bug has been fixed in CVS.

Original version was not really standard complient...

Hope i fixed all. But i implemented a test mechanism and
it works with all files from now.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jun 16 00:01:30 2024 UTC