diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-10-31 14:05:06 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-11-01 00:22:52 +0100 |
commit | b3788aeede87fdbe8566d223bca80ef1a5d48845 (patch) | |
tree | 1d513b1972e03a9173e826d35212121a22a64fec /sw/source | |
parent | 18dc74eb341bab121caac37b2525bc332a20324f (diff) |
ofz#3953 Integer-overflow
Change-Id: Iaf50389680926989170340982337d1e760a2ec3a
Reviewed-on: https://gerrit.libreoffice.org/44120
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/source')
-rw-r--r-- | sw/source/filter/ww8/ww8par.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sw/source/filter/ww8/ww8par.cxx b/sw/source/filter/ww8/ww8par.cxx index 52862a07d17d..5caf9c1772b3 100644 --- a/sw/source/filter/ww8/ww8par.cxx +++ b/sw/source/filter/ww8/ww8par.cxx @@ -2057,6 +2057,9 @@ void WW8ReaderSave::Restore( SwWW8ImplReader* pRdr ) void SwWW8ImplReader::Read_HdFtFootnoteText( const SwNodeIndex* pSttIdx, WW8_CP nStartCp, WW8_CP nLen, ManTypes nType ) { + if (nStartCp < 0 || nLen < 0) + return; + // Saves Flags (amongst other things) and resets them WW8ReaderSave aSave( this ); |