diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-08-31 14:28:00 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-09-01 09:29:56 +0200 |
commit | 3432bace75ba9959524ed1f7e32a833433b30046 (patch) | |
tree | a6e830ef80601833354fbb9860bfeb58647be1b4 /sc/source | |
parent | 648d0c21a1f78074c7119dfcc672f20cc5cf03b1 (diff) |
ofz: MemorySanitizer: use-of-uninitialized-value
Change-Id: I3b32e04f05c39871d172a35ef60af787ffb5ee87
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121397
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/filter/lotus/lotform.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sc/source/filter/lotus/lotform.cxx b/sc/source/filter/lotus/lotform.cxx index ef913b193de4..2c89a46aeed7 100644 --- a/sc/source/filter/lotus/lotform.cxx +++ b/sc/source/filter/lotus/lotform.cxx @@ -326,6 +326,12 @@ void LotusToSc::ReadSRD( const ScDocument& rDoc, ScSingleRefData& rSRD, sal_uInt Read( nTab ); Read( nCol ); + if (!aIn.good()) + { + SAL_WARN("sc.filter", "LotusToSc::ReadSRD short read"); + return; + } + bool b3D = (static_cast<SCTAB>(nTab) != aEingPos.Tab()); rSRD.SetColRel( ( nRelBit & 0x01 ) != 0 ); |