iliaa Thu Apr 3 20:33:58 2003 EDT Modified files: /php4/ext/gd gd.c Log: Might as well disallow 0x0 images. Thanks Marcus. Index: php4/ext/gd/gd.c diff -u php4/ext/gd/gd.c:1.265 php4/ext/gd/gd.c:1.266 --- php4/ext/gd/gd.c:1.265 Thu Apr 3 19:16:47 2003 +++ php4/ext/gd/gd.c Thu Apr 3 20:33:57 2003 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: gd.c,v 1.265 2003/04/04 00:16:47 iliaa Exp $ */ +/* $Id: gd.c,v 1.266 2003/04/04 01:33:57 iliaa Exp $ */ /* gd 1.2 is copyright 1994, 1995, Quest Protein Database Center, Cold Spring Harbor Labs. */ @@ -2947,7 +2947,7 @@ dstH = Z_LVAL_PP(DH); dstW = Z_LVAL_PP(DW); - if (dstW < 0 || dstH < 0 || srcW < 0 || srcH < 0) { + if (dstW <= 0 || dstH <= 0 || srcW <= 0 || srcH <= 0) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid image dimensions"); RETURN_FALSE; }
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php