Kaydet (Commit) 411f5e9c authored tarafından Caolán McNamara's avatar Caolán McNamara

ofz#3566: fix oom

Change-Id: Id5bf172d49c61ad8000a5917759a54eaa0c8467e
Reviewed-on: https://gerrit.libreoffice.org/43195Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 02ab7371
......@@ -1374,7 +1374,7 @@ bool TIFFReader::ReadTIFF(SvStream & rTIFF, Graphic & rGraphic )
nBytesPerRow = nRowSize;
}
if ( bStatus )
if (bStatus)
{
//sanity check consider ReadMap condition for last row and
//last plane
......@@ -1441,7 +1441,7 @@ bool TIFFReader::ReadTIFF(SvStream & rTIFF, Graphic & rGraphic )
bStatus = false;
}
}
else if ( nCompression == 5 )
else if (nCompression == 5)
{
sal_uInt32 np = nPlanes - 1;
if (np >= SAL_N_ELEMENTS(aMap))
......@@ -1464,6 +1464,13 @@ bool TIFFReader::ReadTIFF(SvStream & rTIFF, Graphic & rGraphic )
bStatus = false;
}
}
else if (nCompression == 32773)
{
}
else
{
bStatus = false;
}
}
if ( bStatus )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment