#33220 [Opn->Asn]: Denial of service through imagecreatefromgif()

From: Date: Thu, 02 Jun 2005 14:27:06 +0000
Subject: #33220 [Opn->Asn]: Denial of service through imagecreatefromgif()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-79809@lists.php.net to get a copy of this message
ID: 33220 Updated by: tony2001@php.net Reported By: phpbugs at pureftpd dot org -Status: Open +Status: Assigned Bug Type: GD related Operating System: any PHP Version: 5.0.4 -Assigned To: +Assigned To: pajoye Previous Comments: ------------------------------------------------------------------------ [2005-06-02 15:11:16] phpbugs at pureftpd dot org 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 this bug report at http://bugs.php.net/?id=33220&edit=1

« previous php.bugs (#79809) next »