diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-09-02 10:15:10 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-09-03 12:49:43 +0200 |
commit | ba346227f1c4f896b717676a7eae22fea222f3e4 (patch) | |
tree | a4cf9550671ef4a9cb51d45b2b3654a85e8a3fa7 /lotuswordpro | |
parent | clang-tidy:readability-redundant-member-init (diff) | |
download | core-ba346227f1c4f896b717676a7eae22fea222f3e4.tar.gz core-ba346227f1c4f896b717676a7eae22fea222f3e4.zip |
ofz: MemorySanitizer: use-of-uninitialized-value
Change-Id: If1db8debe4f3b3dc6a8890b03ee8d2d70cc63a69
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121572
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'lotuswordpro')
-rw-r--r-- | lotuswordpro/source/filter/lwpsilverbullet.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
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()); |