Fix bug 74294

This commit is contained in:
Svetlana Kulikova
2025-05-05 15:46:25 +03:00
parent 198e878eb5
commit 4a769c1faa
2 changed files with 2 additions and 3 deletions

View File

@ -443,7 +443,7 @@ BYTE* CPdfFile::SplitPages(const int* arrPageIndex, unsigned int unLength, BYTE*
int nLen = 0;
if (m_pInternal->pEditor->SplitPages(arrPageIndex, unLength))
{
if (pChanges)
if (pChanges && nLength > 3)
{
CConvertFromBinParams* pParams = new CConvertFromBinParams();
AddToPdfFromBinary(pChanges + 4, nLength - 4, pParams);