mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
Reviewed-on: https://git.onlyoffice.com/ONLYOFFICE/core/pulls/594
This commit is contained in:
@ -62,7 +62,7 @@ void ShapePropsStream::readFields(CFRecord& record)
|
|||||||
_UINT32 cb=0;
|
_UINT32 cb=0;
|
||||||
record >> cb;
|
record >> cb;
|
||||||
|
|
||||||
if (cb > 0)
|
if (cb > 0 && cb + record.getRdPtr() <= record.getDataSize())
|
||||||
{
|
{
|
||||||
xml_ = std::string( record.getCurData<char>(), cb);
|
xml_ = std::string( record.getCurData<char>(), cb);
|
||||||
record.skipNunBytes(cb);
|
record.skipNunBytes(cb);
|
||||||
|
|||||||
Reference in New Issue
Block a user