diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-08-07 19:24:37 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2017-08-08 07:33:46 +0200 |
commit | 19925f85fd3f9cf0cf82e8bcb0a4e90922879dc7 (patch) | |
tree | 9670d5a726e98cfa5c9226fef0144da3a33fe83c /sw | |
parent | 12569ca783263be8797ff19b532a9f03c34b4c2a (diff) |
ofz#2877: crash in SVTB16Short
sal_uInt16 wraparound
Change-Id: Ifd791bdd5f1b96576fdd4ca6665bb972fb8b1e4c
Reviewed-on: https://gerrit.libreoffice.org/40853
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.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/ww8scan.cxx b/sw/source/filter/ww8/ww8scan.cxx index ec3dc11da85c..0026ade52132 100644 --- a/sw/source/filter/ww8/ww8scan.cxx +++ b/sw/source/filter/ww8/ww8scan.cxx @@ -3509,7 +3509,7 @@ bool WW8PLCFx_SEPX::Find4Sprms(sal_uInt16 nId1,sal_uInt16 nId2,sal_uInt16 nId3,s p4 = nullptr; sal_uInt8* pSp = pSprms; - sal_uInt16 i=0; + size_t i = 0; while (i + maSprmParser.MinSprmLen() <= nSprmSiz) { // Sprm found? |