#37346 [Com]: gd have a danger bug
| From: | cnstudentmail at Gmail dot com | Date: | Sun, 07 May 2006 06:51:04 +0000 |
| Subject: | #37346 [Com]: gd have a danger bug | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-96757@lists.php.net to get a copy of this message | ||
ID: 37346
Comment by: cnstudentmail at Gmail dot com
Reported By: zq dot hkrcn at gmail dot com
Status: Open
Bug Type: GD related
Operating System: Windows 2000
PHP Version: 5.1.4
New Comment:
i have the same problem.
i think it's a very danger bug because a lots of server is using gd.
Previous Comments:
------------------------------------------------------------------------
[2006-05-07 06:42:53] zq dot hkrcn at gmail dot com
Description:
------------
gd (ver 2.0.28) have a danger bug
a error image can pass php's test
but it would make a fatal error
other question:Could you tell me if you deal with bug report in
Chinese?
i'm chinese
my english is very poor
here's the bug report in Chinese:
当有恶意的用户提交一个错误的图像文件
这个文件的文件头是正确的,但主体是错误的,没有结束
提交上去以后,就会引起
php 的致命错误
www 服务会停止
另外问一下:用中文报告会不会处理的?
Reproduce code:
---------------
<?php
$file = 'http://dev.hkrcn.com/testimg.gif';
$im = imagecreatefromgif($file); // here a fatal error
Expected result:
----------------
cause a error,then stop running
Actual result:
--------------
memory-leak
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=37346&edit=1