mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
Fix bug 77400
This commit is contained in:
@ -732,8 +732,8 @@ bool CPictFile::DecodeData()
|
|||||||
fseek(m_pFile, 12, SEEK_CUR);
|
fseek(m_pFile, 12, SEEK_CUR);
|
||||||
|
|
||||||
if (feof(m_pFile) != 0 || bits_per_pixel <= 0 ||
|
if (feof(m_pFile) != 0 || bits_per_pixel <= 0 ||
|
||||||
bits_per_pixel > 32 || component_count <= 0 ||
|
bits_per_pixel > 32 || component_count < 0 ||
|
||||||
component_count > 4 || component_size <= 0)
|
component_count > 4 || component_size < 0)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
tile_image.m_eAlphaTrait = component_count == 4 ? BlendPixelTrait : UndefinedPixelTrait;
|
tile_image.m_eAlphaTrait = component_count == 4 ? BlendPixelTrait : UndefinedPixelTrait;
|
||||||
|
|||||||
Reference in New Issue
Block a user