diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-09-02 08:47:44 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-09-03 10:03:41 +0200 |
commit | c420019beadb25e3036b669562bd7ece58ecf970 (patch) | |
tree | bccfdc8b024bb8b38764ac7efc98eafe57c77c29 /filter | |
parent | 05335fa0ca398b92726d5e892cc1fb156f43a014 (diff) |
check stream state
Change-Id: Id096abd3dee2584a3afa01d7ce005ed74a224a94
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121495
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/msfilter/svdfppt.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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 |