[Libreoffice-commits] core.git: lotuswordpro/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Thu Sep 2 19:06:21 UTC 2021
lotuswordpro/source/filter/lwp9reader.cxx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit 0e05ce8b9377b90cda47a76a7d0cbd1d5c65c521
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Thu Sep 2 11:12:27 2021 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Thu Sep 2 21:05:46 2021 +0200
cid#1490900 Unchecked return value
Change-Id: I22ab45d8e7bc72c3cf8cf8bb8ddbefef4250fdad
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121517
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/lotuswordpro/source/filter/lwp9reader.cxx b/lotuswordpro/source/filter/lwp9reader.cxx
index 39c753f5ecd2..7340adb042b2 100644
--- a/lotuswordpro/source/filter/lwp9reader.cxx
+++ b/lotuswordpro/source/filter/lwp9reader.cxx
@@ -111,7 +111,9 @@ bool Lwp9Reader::ReadFileHeader()
LwpFileHeader::m_nFileRevision = 0;
LwpObjectHeader objHdr;
- objHdr.Read(*m_pDocStream);
+ if (!objHdr.Read(*m_pDocStream))
+ return false;
+
sal_Int64 pos = m_pDocStream->Tell();
m_LwpFileHdr.Read(m_pDocStream);
return m_pDocStream->CheckSeek(pos + objHdr.GetSize());
More information about the Libreoffice-commits
mailing list