1
0
mirror of https://github.com/php/php-src.git synced 2026-04-29 03:03:26 +02:00

Fixed bug #30281 (Prevent non-wbmp images from being detected as such).

This commit is contained in:
Ilia Alshanetsky
2004-10-04 20:42:30 +00:00
parent 11bcaedfc8
commit 5316f7bf25
+1 -1
View File
@@ -954,7 +954,7 @@ static int php_get_wbmp(php_stream *stream, struct gfxinfo **result, int check T
} 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;
}