filter/source/msfilter/svdfppt.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit c420019beadb25e3036b669562bd7ece58ecf970 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Thu Sep 2 08:47:44 2021 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Fri Sep 3 10:03:41 2021 +0200 check stream state Change-Id: Id096abd3dee2584a3afa01d7ce005ed74a224a94 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121495 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/filter/source/msfilter/svdfppt.cxx b/filter/source/msfilter/svdfppt.cxx index 66afb79fc5cc..b900fd239b5a 100644 --- a/filter/source/msfilter/svdfppt.cxx +++ b/filter/source/msfilter/svdfppt.cxx @@ -3999,7 +3999,7 @@ void PPTParaSheet::Read( SdrPowerPointImport const & sal_uInt32 nVal32; // number of tabulators rIn.ReadUInt16( nVal16 ); - if (rIn.remainingSize() / sizeof(nVal32) < nVal16) + if (!rIn.good() || rIn.remainingSize() / sizeof(nVal32) < nVal16) return; for (sal_uInt16 i = 0; i < nVal16; ++i) rIn.ReadUInt32( nVal32 ); // reading the tabulators