[Libreoffice-commits] core.git: sw/source

Caolán McNamara caolanm at redhat.com
Wed Oct 25 07:55:59 UTC 2017


 sw/source/filter/ww8/ww8scan.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 5bc60b8d1a6be30308c829ad8f8fb5416fd874db
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Tue Oct 24 14:15:12 2017 +0100

    ofz#3758 Integer-overflow
    
    Change-Id: If0dc095025d59186b1bc49b93acf7747b7a65f20
    Reviewed-on: https://gerrit.libreoffice.org/43775
    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 970290527f2f..7e67fb9f5c1a 100644
--- a/sw/source/filter/ww8/ww8scan.cxx
+++ b/sw/source/filter/ww8/ww8scan.cxx
@@ -1830,7 +1830,7 @@ static bool WW8GetFieldPara(WW8PLCFspecial& rPLCF, WW8FieldDesc& rF)
     rF.nLen = rF.nId = rF.nOpt = 0;
     rF.bCodeNest = rF.bResNest = false;
 
-    if( !rPLCF.Get( rF.nSCode, pData ) )             // end of PLCFspecial?
+    if (!rPLCF.Get(rF.nSCode, pData) || rF.nSCode < 0)             // end of PLCFspecial?
         goto Err;
 
     rPLCF.advance();


More information about the Libreoffice-commits mailing list