summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-08-07 19:24:37 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-08-08 07:33:57 +0200
commit9be384b6c4c2ce242140b3a1cfe0c2dfbf405eaa (patch)
treed7e6b991238d9b6fb22068b48f2484340382e9ff /sw
parent5b121b12b50c0db8f5b68616cd8ad95baf91b4f4 (diff)
ofz#2877: crash in SVTB16Short
sal_uInt16 wraparound Change-Id: Ifd791bdd5f1b96576fdd4ca6665bb972fb8b1e4c Reviewed-on: https://gerrit.libreoffice.org/40852 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/filter/ww8/ww8scan.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/ww8scan.cxx b/sw/source/filter/ww8/ww8scan.cxx
index 6ce951b8a529..897fccb5ea90 100644
--- a/sw/source/filter/ww8/ww8scan.cxx
+++ b/sw/source/filter/ww8/ww8scan.cxx
@@ -3501,7 +3501,7 @@ bool WW8PLCFx_SEPX::Find4Sprms(sal_uInt16 nId1,sal_uInt16 nId2,sal_uInt16 nId3,s
bool bFound = false;
sal_uInt8* pSp = pSprms;
- sal_uInt16 i=0;
+ size_t i = 0;
while (i + maSprmParser.MinSprmLen() <= nSprmSiz)
{
// Sprm found?