|  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
Have you experienced this issue?
Rate the importance of this bug to you:

 [2004-08-05 06:07 UTC] chris_phpbug at thepalls dot com
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:

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)


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-08-05 11:23 UTC]
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]
Perhaps related to ?
 [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-2022 The PHP Group
All rights reserved.
Last updated: Thu Jun 30 08:05:45 2022 UTC