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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user