diff options
author | Michael Stahl <mstahl@redhat.com> | 2017-08-22 17:22:32 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2017-08-22 21:54:19 +0200 |
commit | 2f2a56f91e0057ad502b4586714eb3c14fc069af (patch) | |
tree | ef4e6cce6abea87294173a4f56e72fe74dbb26ea /editeng | |
parent | 728e42a9dae8305f6f92628d6d9ba616baaf0426 (diff) |
editeng: avoid infinite loop in SvxBoxItem::Create
Apparently a sw unit test randomly read a partially written autotbl.fmt
and the stream has m_isEof = true.
Change-Id: Iacfbc42e83be6320d4aa695a5df4264f1db0b021
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/items/frmitems.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editeng/source/items/frmitems.cxx b/editeng/source/items/frmitems.cxx index dc506afa7d4e..fb3d120d8ab7 100644 --- a/editeng/source/items/frmitems.cxx +++ b/editeng/source/items/frmitems.cxx @@ -2038,7 +2038,7 @@ SfxPoolItem* SvxBoxItem::Create( SvStream& rStrm, sal_uInt16 nIVersion ) const SvxBoxItemLine::RIGHT, SvxBoxItemLine::BOTTOM }; sal_Int8 cLine; - while( true ) + while (rStrm.good()) { rStrm.ReadSChar( cLine ); |