[Libreoffice-commits] core.git: sc/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Wed Sep 1 07:30:30 UTC 2021
sc/source/filter/lotus/lotform.cxx | 6 ++++++
1 file changed, 6 insertions(+)
New commits:
commit 3432bace75ba9959524ed1f7e32a833433b30046
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Tue Aug 31 14:28:00 2021 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Wed Sep 1 09:29:56 2021 +0200
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 at redhat.com>
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 );
More information about the Libreoffice-commits
mailing list