[Libreoffice-commits] core.git: sw/source
Caolán McNamara
caolanm at redhat.com
Tue Oct 31 23:23:21 UTC 2017
sw/source/filter/ww8/ww8par.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit b3788aeede87fdbe8566d223bca80ef1a5d48845
Author: Caolán McNamara <caolanm at redhat.com>
Date: Tue Oct 31 14:05:06 2017 +0000
ofz#3953 Integer-overflow
Change-Id: Iaf50389680926989170340982337d1e760a2ec3a
Reviewed-on: https://gerrit.libreoffice.org/44120
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/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 );
More information about the Libreoffice-commits
mailing list