sd/source/filter/ppt/propread.cxx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-)
New commits: commit dc2b9e014ba81d6a244d0824e9c3b34fc38de884 Author: Caolán McNamara <caol...@redhat.com> Date: Sat Oct 21 15:08:05 2017 +0100 check seek Change-Id: I610a650caaffe6510c1a13831b810f1dd0eab8ae Reviewed-on: https://gerrit.libreoffice.org/43656 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Caolán McNamara <caol...@redhat.com> Tested-by: Caolán McNamara <caol...@redhat.com> diff --git a/sd/source/filter/ppt/propread.cxx b/sd/source/filter/ppt/propread.cxx index 857912fdf8d5..e473e1566e31 100644 --- a/sd/source/filter/ppt/propread.cxx +++ b/sd/source/filter/ppt/propread.cxx @@ -587,10 +587,12 @@ void PropRead::Read() sal_uInt32 nSectionOfs(0); mpSvStream->ReadUInt32( nSectionOfs ); sal_uInt32 nCurrent = mpSvStream->Tell(); - mpSvStream->Seek( nSectionOfs ); - Section aSection(aSectCLSID.data()); - aSection.Read( mpSvStream.get() ); - maSections.push_back( o3tl::make_unique<Section>( aSection ) ); + if (checkSeek(*mpSvStream, nSectionOfs)) + { + Section aSection(aSectCLSID.data()); + aSection.Read(mpSvStream.get()); + maSections.push_back(o3tl::make_unique<Section>(aSection)); + } mpSvStream->Seek( nCurrent ); } }
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits