summaryrefslogtreecommitdiff
path: root/sw/source/filter/ww8/ww8par.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-04-12 21:07:52 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-04-12 21:13:23 +0100
commitc5603ba6d9d97d62d68cdbda4e2f06527db7092e (patch)
tree0baf13efb58426932f1a9ba8d14cbd059247a1e6 /sw/source/filter/ww8/ww8par.cxx
parent77546ec3587c831846829f6635d91f0d1dd47e27 (diff)
ofz: avoid oom
Change-Id: I64dd130f618ea18b802117b7a2cf0eeb8f271046
Diffstat (limited to 'sw/source/filter/ww8/ww8par.cxx')
-rw-r--r--sw/source/filter/ww8/ww8par.cxx2
1 files changed, 1 insertions, 1 deletions
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 )
{