[Libreoffice-commits] core.git: lotuswordpro/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Fri Sep 3 10:50:16 UTC 2021
lotuswordpro/source/filter/lwpsilverbullet.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit ba346227f1c4f896b717676a7eae22fea222f3e4
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Thu Sep 2 10:15:10 2021 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Fri Sep 3 12:49:43 2021 +0200
ofz: MemorySanitizer: use-of-uninitialized-value
Change-Id: If1db8debe4f3b3dc6a8890b03ee8d2d70cc63a69
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121572
Tested-by: Caolán McNamara <caolanm at redhat.com>
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/lotuswordpro/source/filter/lwpsilverbullet.cxx b/lotuswordpro/source/filter/lwpsilverbullet.cxx
index 338e71e5290a..07232d36d9bb 100644
--- a/lotuswordpro/source/filter/lwpsilverbullet.cxx
+++ b/lotuswordpro/source/filter/lwpsilverbullet.cxx
@@ -98,6 +98,8 @@ void LwpSilverBullet::Read()
for (sal_uInt16 nC = 0; nC < nNumPos; nC++)
m_pResetPositionFlags[nC] = m_pObjStrm->QuickReaduInt8();
+ memset(m_pResetPositionFlags + nNumPos, 0, SAL_N_ELEMENTS(m_pResetPositionFlags) - nNumPos);
+
m_nUseCount = m_pObjStrm->QuickReaduInt32();
m_pAtomHolder->Read(m_pObjStrm.get());
More information about the Libreoffice-commits
mailing list