[Libreoffice-commits] core.git: sw/source
Caolán McNamara
caolanm at redhat.com
Tue Oct 31 23:22:45 UTC 2017
sw/source/filter/ww8/ww8scan.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 18dc74eb341bab121caac37b2525bc332a20324f
Author: Caolán McNamara <caolanm at redhat.com>
Date: Tue Oct 31 15:38:29 2017 +0000
ofz: Integer-overflow
Change-Id: I29dbad16a8098ca93af0fda461d151cd310eef4c
Reviewed-on: https://gerrit.libreoffice.org/44124
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/sw/source/filter/ww8/ww8scan.cxx b/sw/source/filter/ww8/ww8scan.cxx
index 4afa6b66a32b..e07b12129518 100644
--- a/sw/source/filter/ww8/ww8scan.cxx
+++ b/sw/source/filter/ww8/ww8scan.cxx
@@ -1885,7 +1885,7 @@ static bool WW8GetFieldPara(WW8PLCFspecial& rPLCF, WW8FieldDesc& rF)
// still new (nested) beginnings ?
WW8SkipField( rPLCF ); // nested Field in description
rF.bCodeNest = true;
- if( !rPLCF.Get( rF.nSRes, pData ) )
+ if (!rPLCF.Get(rF.nSRes, pData) || rF.nSRes < 0)
goto Err;
}
More information about the Libreoffice-commits
mailing list