Bug #14731 Updated: read_exif_data crash reading specific images
| From: | cvig at raw-io dot com | Date: | Tue, 12 Feb 2002 04:01:37 +0000 |
| Subject: | Bug #14731 Updated: read_exif_data crash reading specific images | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-167@lists.php.net to get a copy of this message | ||
ID: 14731
Updated by: cvig@raw-io.com
-Reported By: jt-news@thoestesen.dk
+Reported By: cvig@raw-io.com
Status: Open
Bug Type: *Graphics related
Operating System: FreeBSD 4.4
PHP Version: 4.1.0
New Comment:
I had it working ok when reading one file from a DC4800. Tried to open
10 in a row and I got the following error in the apache log file for
each file:
FATAL: emalloc(): Unable to allocate -2147483648 bytes
FreeBSD 4.5, PHP 4.1.1
Previous Comments:
------------------------------------------------------------------------
[2002-01-11 17:43:35] chrille@isa.dknet.dk
I've been strugling with this issue for some time, also on FreeBSD
4.4-stable. The bug still exists in CVS as of today. I can also conform
that removing TAG_JPEGQUAL and TAG_MACRO fixes the problem.
------------------------------------------------------------------------
[2001-12-28 07:26:12] jt-news@thoestesen.dk
When calling read_exif_data with a picture taken with a Kodak DC240 it
causes PHP to crash. (This error is probably related to bug #14026)
It seems to be caused to the (mis-)reading of the thumbnail-info from
the exif-tag. After changing the ext/exif.c and removing the cases
TAG_JPEGQUAL and TAG_MACRO at line 760-779, the read_exif_data runs
without any problems - But then (of course) it only read the data about
the picture and not the thumbnail.
To reproduce call read_exif_data with any photo taken with a Kodak
DC240
Examplephoto http://thoestesen.dk/DCP_4030.JPG
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=14731&edit=1