mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-02-10 18:05:41 +08:00
Reviewed-on: https://git.onlyoffice.com/ONLYOFFICE/core/pulls/633
This commit is contained in:
@ -145,7 +145,7 @@ std::wstring HyperlinkObject::loadHyperlinkString(XLS::CFRecord& record)
|
||||
_INT32 size = 0;
|
||||
record >> size;
|
||||
|
||||
if (size < 1) return L"";
|
||||
if (size < 1 || record.getRdPtr() + size > record.getDataSize()) return L"";
|
||||
|
||||
_INT32 size_record = record.getDataSize() - record.getRdPtr();
|
||||
if (size > size_record)
|
||||
|
||||
Reference in New Issue
Block a user