lotuswordpro/source/filter/lwpsilverbullet.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit aa07e8267d28b5d57df655f373d2bb585672bf3a
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Sat Sep 4 12:34:03 2021 +0100
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Sat Sep 4 21:40:35 2021 +0200

    cid#1490901 silence Out-of-bounds read
    
    Change-Id: I4757413c80f6dc71d40c5c5525c484a54b71f676
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121634
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/lotuswordpro/source/filter/lwpsilverbullet.cxx 
b/lotuswordpro/source/filter/lwpsilverbullet.cxx
index 07232d36d9bb..e2fa4112d243 100644
--- a/lotuswordpro/source/filter/lwpsilverbullet.cxx
+++ b/lotuswordpro/source/filter/lwpsilverbullet.cxx
@@ -98,7 +98,7 @@ 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);
+    std::fill(m_pResetPositionFlags + nNumPos, m_pResetPositionFlags + 
SAL_N_ELEMENTS(m_pResetPositionFlags), 0);
 
     m_nUseCount = m_pObjStrm->QuickReaduInt32();
 

Reply via email to