diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-10-31 15:38:29 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-11-01 00:22:18 +0100 |
commit | 18dc74eb341bab121caac37b2525bc332a20324f (patch) | |
tree | 267b9f8e386ba52284ca3dec4ec0f7585df1909b /sw | |
parent | d4dba27466b0f89226b073277c3ffc48161bd9e8 (diff) |
ofz: Integer-overflow
Change-Id: I29dbad16a8098ca93af0fda461d151cd310eef4c
Reviewed-on: https://gerrit.libreoffice.org/44124
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.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 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; } |