[Libreoffice-commits] core.git: sw/source
Caolán McNamara
caolanm at redhat.com
Sun Dec 4 20:44:20 UTC 2016
sw/source/filter/ww8/ww8scan.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 17f4f35619df8497c0cbbc9b455dcd4201156144
Author: Caolán McNamara <caolanm at redhat.com>
Date: Sun Dec 4 20:35:05 2016 +0000
coverity#1394416 another effort at silencing Out-of-bounds read
Change-Id: Ie43a6be74bb79fa75bd268cc4b11f90f076eca5a
diff --git a/sw/source/filter/ww8/ww8scan.cxx b/sw/source/filter/ww8/ww8scan.cxx
index c8c5a38..427e4f1 100644
--- a/sw/source/filter/ww8/ww8scan.cxx
+++ b/sw/source/filter/ww8/ww8scan.cxx
@@ -2551,7 +2551,7 @@ WW8PLCFx_Fc_FKP::WW8Fkp::WW8Fkp(const WW8Fib& rFib, SvStream* pSt,
*/
bool bExpand = IsExpandableSprm(nSpId);
const sal_uInt8* pStartData = aEntry.mpData + 2;
- const sal_uInt8* pLastValidDataPos = maRawData + sizeof(maRawData) - sizeof(sal_uInt32);
+ const sal_uInt8* pLastValidDataPos = maRawData + 512 - sizeof(sal_uInt32);
if ((IsReplaceAllSprm(nSpId) || bExpand) && pStartData <= pLastValidDataPos)
{
sal_uInt32 nCurr = pDataSt->Tell();
More information about the Libreoffice-commits
mailing list