iliaa Mon Oct 4 16:42:30 2004 EDT Modified files: /php-src/ext/standard image.c Log: Fixed bug #30281 (Prevent non-wbmp images from being detected as such). http://cvs.php.net/diff.php/php-src/ext/standard/image.c?r1=1.101&r2=1.102&ty=u Index: php-src/ext/standard/image.c diff -u php-src/ext/standard/image.c:1.101 php-src/ext/standard/image.c:1.102 --- php-src/ext/standard/image.c:1.101 Sat Sep 25 10:46:24 2004 +++ php-src/ext/standard/image.c Mon Oct 4 16:42:30 2004 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: image.c,v 1.101 2004/09/25 14:46:24 hyanantha Exp $ */ +/* $Id: image.c,v 1.102 2004/10/04 20:42:30 iliaa Exp $ */ #include "php.h" #include <stdio.h> @@ -954,7 +954,7 @@ } while (i & 0x80); /* maximum valid sizes for wbmp (although 127x127 may be a more accurate one) */ - if (height > 2048 || width > 2048) { + if (!height || !width || height > 2048 || width > 2048) { return 0; }
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php