sc/source/filter/lotus/op.cxx | 3 +++ 1 file changed, 3 insertions(+) New commits: commit 874bcdbd8948ca98a559d8604795ea3ee238bf15 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Mon Aug 30 17:09:14 2021 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Tue Aug 31 09:57:43 2021 +0200
ofz: MemorySanitizer: use-of-uninitialized-value Change-Id: I3be8bae46978b8641abf82acd9620c770a076a33 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121320 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/sc/source/filter/lotus/op.cxx b/sc/source/filter/lotus/op.cxx index 4f9ed6e2679b..6f79cc5afa24 100644 --- a/sc/source/filter/lotus/op.cxx +++ b/sc/source/filter/lotus/op.cxx @@ -244,6 +244,9 @@ void OP_SymphNamedRange(LotusContext& rContext, SvStream& r, sal_uInt16 /*n*/) r.ReadUInt16( nColSt ).ReadUInt16( nRowSt ).ReadUInt16( nColEnd ).ReadUInt16( nRowEnd ).ReadUChar( nType ); + if (!r.good()) + return; + if (!rContext.rDoc.ValidColRow(static_cast<SCCOL>(nColSt), nRowSt) || !rContext.rDoc.ValidColRow(static_cast<SCCOL>(nColEnd), nRowEnd)) return;