summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-08-28 09:56:52 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-08-29 15:16:40 +0200
commitba367806deb5e5b63996f2965fe3d9677921af26 (patch)
tree6ad62e1c9342035cdfb1dce16544e85a5229ff8e /sc/source
parentbf5fc53cf7f35f7c39d0d8d8b871096b8ca2d042 (diff)
ofz: MemorySanitizer: use-of-uninitialized-value
Change-Id: I649e8b8fa0d1752f0f4b0b6b688cea8ae945bb87 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121186 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc/source')
-rw-r--r--sc/source/filter/lotus/lotimpop.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/sc/source/filter/lotus/lotimpop.cxx b/sc/source/filter/lotus/lotimpop.cxx
index cb74275221ca..38a0337a9d25 100644
--- a/sc/source/filter/lotus/lotimpop.cxx
+++ b/sc/source/filter/lotus/lotimpop.cxx
@@ -69,6 +69,9 @@ void ImportLotus::Bof()
Skip( 1 );
Read( nFlags );
+ if (!pIn->good())
+ return;
+
if( nFileSub == 0x0004 )
{
if( nFileCode == 0x1000 )
@@ -84,7 +87,7 @@ void ImportLotus::Bof()
bool ImportLotus::BofFm3()
{
- sal_uInt16 nFileCode, nFileSub;
+ sal_uInt16 nFileCode(0), nFileSub(0);
Read( nFileCode );
Read( nFileSub );