Kaydet (Commit) 8ae5d297 authored tarafından Caolán McNamara's avatar Caolán McNamara

ofz#11243 timeout with bogus length

Change-Id: I707f31b704ed6e67183bdbd60ea1c1cc126dac09
Reviewed-on: https://gerrit.libreoffice.org/66161
Tested-by: Jenkins
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 1a8b2c1b
......@@ -1297,7 +1297,15 @@ bool ImplSdPPTImport::Import()
if ( SeekToRec( rStCtrl, PPT_PST_NamedShowSlides, aCuHeader.GetRecEndFilePos(), &aContent ) )
{
PptSlidePersistList* pPageList = GetPageList( PPT_SLIDEPAGE );
sal_uInt32 nSCount = aContent.nRecLen >> 2;
const auto nRemainingSize = rStCtrl.remainingSize();
sal_uInt32 nBCount = aContent.nRecLen;
if (nBCount > nRemainingSize)
{
SAL_WARN("filter.ms", "page number data len longer than remaining stream size");
nBCount = nRemainingSize;
}
sal_uInt32 nSCount = nBCount >> 2;
if ( pPageList && nSCount )
{
SdCustomShowList* pList = mpDoc->GetCustomShowList( true );
......
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