From: zq dot hkrcn at gmail dot com Operating system: Windows 2000 PHP version: 5.1.4 PHP Bug Type: GD related Bug description: gd have a danger bug
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 bug report at http://bugs.php.net/?id=37346&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37346&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=37346&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37346&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=37346&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=37346&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=37346&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=37346&r=needscript Try newer version: http://bugs.php.net/fix.php?id=37346&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=37346&r=support Expected behavior: http://bugs.php.net/fix.php?id=37346&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=37346&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=37346&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=37346&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37346&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=37346&r=dst IIS Stability: http://bugs.php.net/fix.php?id=37346&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=37346&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=37346&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=37346&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=37346&r=mysqlcfg