[Libreoffice-commits] core.git: Branch 'libreoffice-5-3' - sw/source
Caolán McNamara
caolanm at redhat.com
Fri Sep 22 12:47:55 UTC 2017
sw/source/filter/ww8/ww8scan.cxx | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
New commits:
commit 46882bb61b1381dd257cd96a255ed71f7af03166
Author: Caolán McNamara <caolanm at redhat.com>
Date: Fri Sep 22 09:37:43 2017 +0100
ofz#3457 Unknown Read
similar to
commit 35bac83ed2b5d48233c653cc7dc4eab5c234f7ac
Date: Mon Aug 7 19:24:37 2017 +0100
ofz#2877: crash in SVTB16Short
Change-Id: Idc2ca89647a5e17484effaca49afce349b98f0a3
Reviewed-on: https://gerrit.libreoffice.org/42624
Reviewed-by: Michael Stahl <mstahl at redhat.com>
Tested-by: Michael Stahl <mstahl at redhat.com>
diff --git a/sw/source/filter/ww8/ww8scan.cxx b/sw/source/filter/ww8/ww8scan.cxx
index 4d138aa6f5f7..82e56f82bca9 100644
--- a/sw/source/filter/ww8/ww8scan.cxx
+++ b/sw/source/filter/ww8/ww8scan.cxx
@@ -3540,8 +3540,7 @@ const sal_uInt8* WW8PLCFx_SEPX::HasSprm( sal_uInt16 nId, sal_uInt8 n2nd ) const
return nullptr;
sal_uInt8* pSp = pSprms;
-
- sal_uInt16 i=0;
+ size_t i = 0;
while (i + maSprmParser.MinSprmLen() <= nSprmSiz)
{
// Sprm found?
More information about the Libreoffice-commits
mailing list