#28451 [NEW]: Infinite recursion in ext/exif
| From: | rasmus@php.net | Date: | Wed, 19 May 2004 23:18:03 +0000 |
| Subject: | #28451 [NEW]: Infinite recursion in ext/exif | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-59789@lists.php.net to get a copy of this message | ||
From: rasmus@php.net
Operating system: All
PHP version: 4.3.6
PHP Bug Type: *Graphics related
Bug description: Infinite recursion in ext/exif
Description:
------------
This jpg (http://lerdorf.com/file.jpg) causes infinite recursion leading
to a crash.
I'll get to fixing it eventually, but can't right now and don't want it to
go unfixed for too long, so if anybody else is keen...
Reproduce code:
---------------
<?php
$exif=exif_read_data('http://lerdorf.com/file.jpg');
?>
Actual result:
--------------
#1087 0x08090f77 in exif_process_IFD_TAG (ImageInfo=0xbfffcc50,
dir_entry=0x1 <Address 0x1 out of bounds>, offset_base=0x84f4bac "MM",
IFDlength=24989,
displacement=12, section_index=7, ReadNextIFD=1, tag_table=0x827ccc0)
at /home/rasmus/php43/ext/exif/exif.c:2955
#1088 0x0809152e in exif_process_IFD_in_JPEG (ImageInfo=0xbfffcc50,
dir_start=0x84f4bf0 "",
offset_base=0x84f4bac "MM", IFDlength=24989, displacement=12,
section_index=7)
at /home/rasmus/php43/ext/exif/exif.c:2990
#1089 0x08090f77 in exif_process_IFD_TAG (ImageInfo=0xbfffcc50,
dir_entry=0x1 <Address 0x1 out of bounds>, offset_base=0x84f4bac "MM",
IFDlength=24989,
displacement=12, section_index=7, ReadNextIFD=1, tag_table=0x827ccc0)
at /home/rasmus/php43/ext/exif/exif.c:2955
#1090 0x0809152e in exif_process_IFD_in_JPEG (ImageInfo=0xbfffcc50,
dir_start=0x84f4bf0 "",
offset_base=0x84f4bac "MM", IFDlength=24989, displacement=12,
section_index=7)
at /home/rasmus/php43/ext/exif/exif.c:2990
--
Edit bug report at http://bugs.php.net/?id=28451&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28451&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28451&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=28451&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=28451&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=28451&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=28451&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=28451&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=28451&r=support
Expected behavior: http://bugs.php.net/fix.php?id=28451&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=28451&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=28451&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=28451&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28451&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=28451&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=28451&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=28451&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28451&r=float