cvs: php4 /ext/gd gd.c

From: Date: Fri, 28 Jun 2002 09:23:51 +0000
Subject: cvs: php4 /ext/gd gd.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-12594@lists.php.net to get a copy of this message
sniper Fri Jun 28 05:23:51 2002 EDT Modified files: /php4/ext/gd gd.c Log: Fix bug: #17528, do not crash with empty string. Index: php4/ext/gd/gd.c diff -u php4/ext/gd/gd.c:1.195 php4/ext/gd/gd.c:1.196 --- php4/ext/gd/gd.c:1.195 Fri Jun 28 02:43:17 2002 +++ php4/ext/gd/gd.c Fri Jun 28 05:23:50 2002 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: gd.c,v 1.195 2002/06/28 06:43:17 derick Exp $ */ +/* $Id: gd.c,v 1.196 2002/06/28 09:23:50 sniper Exp $ */ /* gd 1.2 is copyright 1994, 1995, Quest Protein Database Center, Cold Spring Harbor Labs. */ @@ -963,7 +963,7 @@ #ifdef HAVE_LIBGD15 /* Based on ext/standard/images.c */ - if (data == NULL) + if (data == NULL || strlen(data) <= 0) return -1; if (!memcmp(data, php_sig_gd2, 3))

« previous php.cvs (#12594) next »