This commit is contained in:
Elena Subbotina
2025-07-01 17:00:40 +03:00
parent 17369e8bee
commit e0840e73d2

View File

@ -88,9 +88,9 @@ namespace DocFileFormat
int indexCpNext = (i+1) * 4;
int cpNext = FormatUtils::BytesToInt32(piecetable, indexCpNext, lcb);
if (cpNext > streamSize)
if (cpNext > fib->m_FibBase.fcMac)
{
cpNext = streamSize;
cpNext = fib->m_FibBase.fcMac;
}
//read the PCD