[Libreoffice-commits] core.git: lotuswordpro/source
Caolán McNamara
caolanm at redhat.com
Tue Feb 28 16:26:39 UTC 2017
lotuswordpro/source/filter/lwpstory.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit c632aa3269aa08457a35e98580fb693a9dacfecd
Author: Caolán McNamara <caolanm at redhat.com>
Date: Tue Feb 28 16:25:37 2017 +0000
endless loop on corrupt lwp
Change-Id: Ie984d396a6c0055fc5175755fd42161749c572be
diff --git a/lotuswordpro/source/filter/lwpstory.cxx b/lotuswordpro/source/filter/lwpstory.cxx
index 6a700be..61c91b7 100644
--- a/lotuswordpro/source/filter/lwpstory.cxx
+++ b/lotuswordpro/source/filter/lwpstory.cxx
@@ -132,6 +132,8 @@ void LwpStory::RegisterStyle()
rtl::Reference<LwpPara> xPara(dynamic_cast<LwpPara*>(GetFirstPara().obj().get()));
while (xPara.is())
{
+ if (xPara->GetFoundry())
+ throw std::runtime_error("loop in register style");
xPara->SetFoundry(m_pFoundry);
xPara->DoRegisterStyle();
xPara.set(dynamic_cast<LwpPara*>(xPara->GetNext().obj().get()));
More information about the Libreoffice-commits
mailing list