mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-12-13 19:49:36 +00:00
Don't allow empty images.
This commit is contained in:
@@ -81,8 +81,7 @@ namespace
|
|||||||
if (infoHeader.m_thisStructureSize > sizeForInfoHeader)
|
if (infoHeader.m_thisStructureSize > sizeForInfoHeader)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// Dimensions need to fit in 16-bit signed space
|
if (infoHeader.m_width >= 0x1000 || infoHeader.m_height >= 0x1000 || infoHeader.m_width < 1 || infoHeader.m_height < 1)
|
||||||
if (infoHeader.m_width >= 0x8000 || infoHeader.m_height >= 0x8000)
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user