From: Ilia Alshanetsky Date: Fri, 4 Apr 2003 01:34:08 +0000 (+0000) Subject: MFH X-Git-Tag: php-4.3.2RC2~162 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=49f03824903ffe33b8620d0c4fd744c938d70f89;p=php MFH --- diff --git a/ext/gd/gd.c b/ext/gd/gd.c index 3034fe83df..72b1070f33 100644 --- a/ext/gd/gd.c +++ b/ext/gd/gd.c @@ -2862,7 +2862,7 @@ PHP_FUNCTION(imagecopyresized) 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; }