From:             phpbugs at pureftpd dot org
Operating system: any
PHP version:      5.0.4
PHP Bug Type:     GD related
Bug description:  Denial of service through imagecreatefromgif()

Description:
------------
The following (invalid) picture triggers an infinite loop  
in gdImageCreateFromGif() with 100% CPU usage.  
  
Tested on Linux and OpenBSD, PHP4 with GD 1 and PHP5 with 
built-in GD. 

Reproduce code:
---------------
<?php
imagecreatefromgif('kaboom-gd.gif');
?>

Get kaboom-gd.gif from ftp://ftp.00f.net/misc/kaboom-gd.gif


Expected result:
----------------
No 100% CPU usage. 

Actual result:
--------------
100% CPU usage, infinite loop. 

-- 
Edit bug report at http://bugs.php.net/?id=33220&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=33220&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=33220&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=33220&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=33220&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=33220&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=33220&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=33220&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=33220&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=33220&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=33220&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=33220&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=33220&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=33220&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=33220&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=33220&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=33220&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=33220&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=33220&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=33220&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=33220&r=mysqlcfg

Reply via email to