lotuswordpro/source/filter/lwpstory.cxx | 2 ++ 1 file changed, 2 insertions(+)
New commits: commit c632aa3269aa08457a35e98580fb693a9dacfecd Author: Caolán McNamara <caol...@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()));
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits