[Libreoffice-commits] core.git: filter/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Fri Sep 3 08:04:15 UTC 2021
filter/source/msfilter/svdfppt.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit c420019beadb25e3036b669562bd7ece58ecf970
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Thu Sep 2 08:47:44 2021 +0100
Commit: Caolán McNamara <caolanm at 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 <caolanm at 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
More information about the Libreoffice-commits
mailing list