This commit is contained in:
Elena.Subbotina
2024-03-13 18:43:13 +03:00
parent a6370ec0a6
commit 1a676ace8b
5 changed files with 5 additions and 5 deletions

View File

@ -299,7 +299,7 @@ bool COfficeFileFormatChecker::isOleObjectFile(POLE::Storage *storage)
std::string UserType, ClipboardFormat, Program;
POLE::Stream streamCompObject(storage, L"CompObj");
if (false == streamCompObject.fail())
if (false == streamCompObject.fail() && streamCompObject.size() >= 28)
{
streamCompObject.seek(28); // skip Header