cvs: php4 /ext/gd gd.c

From: Date: Mon, 21 Aug 2000 14:11:19 +0000
Subject: cvs: php4 /ext/gd gd.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-1290@lists.php.net to get a copy of this message
stas Mon Aug 21 07:11:19 2000 EDT Modified files: /php4/ext/gd gd.c Log: Fix crash in one-argument imagecolortransparent Index: php4/ext/gd/gd.c diff -u php4/ext/gd/gd.c:1.83 php4/ext/gd/gd.c:1.84 --- php4/ext/gd/gd.c:1.83 Fri Jul 14 15:07:57 2000 +++ php4/ext/gd/gd.c Mon Aug 21 07:11:19 2000 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: gd.c,v 1.83 2000/07/14 22:07:57 rasmus Exp $ */ +/* $Id: gd.c,v 1.84 2000/08/21 14:11:19 stas Exp $ */ /* gd 1.2 is copyright 1994, 1995, Quest Protein Database Center, Cold Spring Harbor Labs. */ @@ -1414,7 +1414,7 @@ ZEND_FETCH_RESOURCE(im, gdImagePtr, IM, -1, "Image", GDG(le_gd)); - if ((*COL) != NULL) { + if (COL != NULL && (*COL) != NULL) { col = (*COL)->value.lval; gdImageColorTransparent(im,col); }

« previous php.cvs (#1290) next »