Commit 54f83a5b authored by Téo Mazars's avatar Téo Mazars

plug-ins: don't check biClrUsed if bpp > 8 (in bug 697431)

parent fcecafa4
......@@ -487,7 +487,7 @@ ReadBMP (const gchar *name,
goto out;
}
if (Bitmap_Head.biClrUsed > 256)
if (Bitmap_Head.biClrUsed > 256 && Bitmap_Head.biBitCnt <= 8)
{
g_set_error (error, G_FILE_ERROR, G_FILE_ERROR_FAILED,
_("'%s' is not a valid BMP file"),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment