php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29527 Exif Function Crashes Apache
Submitted: 2004-08-05 06:07 UTC Modified: 2005-02-01 22:53 UTC
From: chris_phpbug at thepalls dot com Assigned: helly (profile)
Status: No Feedback Package: EXIF related
PHP Version: 5.0.0 OS: WinXP Sp1
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: chris_phpbug at thepalls dot com
New email:
PHP Version: OS:

 

 [2004-08-05 06:07 UTC] chris_phpbug at thepalls dot com
Description:
------------
Pretty simple, the EXIF library must not like something about this image.

Image was fine before I added a comment via Properties in WinXP. There is a very decent chance that our good buddies at MS screwed something up. Since there is no file upload here, just download the file from this location:

http://software.thepalls.com/IMG_1564.jpg




Reproduce code:
---------------
$exif = exif_read_data($filename, 'IFD0');

Expected result:
----------------
Exif data returned to function.

Actual result:
--------------
I could probably generate a stack trace, but I'll bet you can regenerate it anyway. It's a crash, one of those general protection/access violation type kabooms! It is not.

p.s., when I tried to duplicate this using local files, php just crashes whenever using the exif library, but it seems to work just fine when running under apache (other than this particular image)



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-08-05 11:23 UTC] helly@php.net
That image can be read just fine with PHP. Maybe you sent the wrong one because it does not contain any tags inserted by Windows XP. Check again and maybe send me a picture directly or your stack trace since even valgrind doesn't show any problems here.
 [2004-08-06 01:13 UTC] rasmus@php.net
Perhaps related to http://bugs.php.net/28451 ?
 [2004-08-23 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sat Mar 06 15:01:23 2021 UTC