diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-09-04 12:34:03 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-09-04 21:40:35 +0200 |
commit | aa07e8267d28b5d57df655f373d2bb585672bf3a (patch) | |
tree | aef93fe34b547363c935a62a0d3230a01d03bd1c /lotuswordpro | |
parent | bcd823d31f7a2c670db81988e527d5c9682fe177 (diff) |
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 <caolanm@redhat.com>
Diffstat (limited to 'lotuswordpro')
-rw-r--r-- | lotuswordpro/source/filter/lwpsilverbullet.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |