Bug #2447: php3_imagecreatefromgif doesn't check the return value of gdImageCreateFromGif

From: Date: Tue, 05 Oct 1999 18:33:45 +0000
Subject: Bug #2447: php3_imagecreatefromgif doesn't check the return value of gdImageCreateFromGif
Groups: php.dev 
Request: Send a blank email to php-dev+get-11552@lists.php.net to get a copy of this message
From: benoit@proxad.net Operating system: Debian Linux 2.2.10 on P2 PHP version: 3.0.12 PHP Bug Type: Reproduceable crash Bug description: php3_imagecreatefromgif doesn't check the return value of gdImageCreateFromGif Using 3.0.12 from Debian as a CGI In functions/gd.c -- void php3_imagecreatefromgif the function call gdImageCreateFromGif but doesn't check for its return value. If the .gif is not valid then gdImageCreateFromGif return NULL that makes the php segfault. Bye -- Benoit

« previous php.dev (#11552) next »