mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-19 22:01:45 +08:00
fix bug #66857
This commit is contained in:
@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user