sw/source/filter/ww8/ww8par.cxx | 3 +++ 1 file changed, 3 insertions(+)
New commits: commit b3788aeede87fdbe8566d223bca80ef1a5d48845 Author: Caolán McNamara <caol...@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 <c...@libreoffice.org> Reviewed-by: Caolán McNamara <caol...@redhat.com> Tested-by: Caolán McNamara <caol...@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 );
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits