diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-04-04 21:41:14 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-04-05 07:54:41 +0000 |
commit | fdcac49119d3fc9f6216af834e7afc56d2c2e376 (patch) | |
tree | fb9195fd262073076ed15f7f6770f127966a54bb /sw/source/filter/ww8/ww8par6.cxx | |
parent | 02d5424751b456e5d29ef58a059b6ae604ac8616 (diff) |
ofz: stay within available data
Change-Id: Ic959cf5b2cd92ba5bc297e686beb1fd50427a994
Reviewed-on: https://gerrit.libreoffice.org/36102
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source/filter/ww8/ww8par6.cxx')
-rw-r--r-- | sw/source/filter/ww8/ww8par6.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/filter/ww8/ww8par6.cxx b/sw/source/filter/ww8/ww8par6.cxx index 276a5260a337..a1c35e6dc1c3 100644 --- a/sw/source/filter/ww8/ww8par6.cxx +++ b/sw/source/filter/ww8/ww8par6.cxx @@ -6292,7 +6292,7 @@ void SwWW8ImplReader::EndSprm( sal_uInt16 nId ) (this->*rSprm.pReadFnc)( nId, nullptr, -1 ); } -short SwWW8ImplReader::ImportSprm(const sal_uInt8* pPos,sal_uInt16 nId) +short SwWW8ImplReader::ImportSprm(const sal_uInt8* pPos, sal_Int32 nMemLen, sal_uInt16 nId) { if (!nId) nId = m_pSprmParser->GetSprmId(pPos); @@ -6302,7 +6302,7 @@ short SwWW8ImplReader::ImportSprm(const sal_uInt8* pPos,sal_uInt16 nId) const SprmReadInfo& rSprm = GetSprmReadInfo(nId); sal_uInt16 nFixedLen = m_pSprmParser->DistanceToData(nId); - sal_uInt16 nL = m_pSprmParser->GetSprmSize(nId, pPos); + sal_uInt16 nL = m_pSprmParser->GetSprmSize(nId, pPos, nMemLen); if (rSprm.pReadFnc) (this->*rSprm.pReadFnc)(nId, pPos + nFixedLen, nL - nFixedLen); |