sw/source/filter/ww8/ww8par.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit c5603ba6d9d97d62d68cdbda4e2f06527db7092e Author: Caolán McNamara <caol...@redhat.com> Date: Wed Apr 12 21:07:52 2017 +0100 ofz: avoid oom Change-Id: I64dd130f618ea18b802117b7a2cf0eeb8f271046 diff --git a/sw/source/filter/ww8/ww8par.cxx b/sw/source/filter/ww8/ww8par.cxx index 797518cc2ae5..2a52276d6359 100644 --- a/sw/source/filter/ww8/ww8par.cxx +++ b/sw/source/filter/ww8/ww8par.cxx @@ -6002,7 +6002,7 @@ const OUString* SwWW8ImplReader::GetAnnotationAuthor(sal_uInt16 nIdx) rStrm.Seek( m_pWwFib->m_fcGrpStAtnOwners ); long nRead = 0, nCount = m_pWwFib->m_lcbGrpStAtnOwners; - while (nRead < nCount) + while (nRead < nCount && rStrm.good()) { if( m_bVer67 ) {
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits