diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-09-22 09:37:43 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2017-09-22 14:47:39 +0200 |
commit | 3766aa5b3232beba4e4989696b6d19103ba0d62f (patch) | |
tree | 17ad22f70cb790c821595532cda1449176ae7b91 | |
parent | 52230cb62d2784a5e5eae6f9982a7d1b2d8e43e9 (diff) |
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/42623
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Jenkins <ci@libreoffice.org>
-rw-r--r-- | sw/source/filter/ww8/ww8scan.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/filter/ww8/ww8scan.cxx b/sw/source/filter/ww8/ww8scan.cxx index ce322e6c0571..d0253338b228 100644 --- a/sw/source/filter/ww8/ww8scan.cxx +++ b/sw/source/filter/ww8/ww8scan.cxx @@ -3544,8 +3544,7 @@ SprmResult WW8PLCFx_SEPX::HasSprm( sal_uInt16 nId, sal_uInt8 n2nd ) const return SprmResult(); sal_uInt8* pSp = pSprms; - - sal_uInt16 i=0; + size_t i = 0; while (i + maSprmParser.MinSprmLen() <= nSprmSiz) { // Sprm found? |