".docx" file immediately crashes LibreOffice 4.0.2.2

Norbert Thiebaud nthiebaud at gmail.com
Sun May 5 16:52:45 PDT 2013


On Sun, May 5, 2013 at 12:55 PM, Manuel Reimer
<Manuel.Spam at nurfuerspam.de> wrote:
> Manuel Reimer wrote:
>>
>> I have a ".docx" file which immediately crashes LibreOffice.
>>
>> Can someone please tell me where I can send this file to so a developer
>> can have
>> a look at this file? I can't publish the file on the internet, as the
>> content in
>> this file is copyright protected.
>
>
> I asked the author and I got the permission to publish the file, so I filed
> a bug here:
> https://bugs.freedesktop.org/show_bug.cgi?id=64249

Yep, that is the way to go :-)

the patch below worked around the crash for me... :

diff --git a/writerfilter/source/dmapper/DomainMapper_Impl.cxx
b/writerfilter/source/dmapper/DomainMapper_Impl.cxx
index b5a5baa..2efc636 100644
--- a/writerfilter/source/dmapper/DomainMapper_Impl.cxx
+++ b/writerfilter/source/dmapper/DomainMapper_Impl.cxx
@@ -1647,6 +1647,8 @@ void DomainMapper_Impl::PushShapeContext( const
uno::Reference< drawing::XShape
     if (m_aTextAppendStack.empty())
         return;
     uno::Reference<text::XTextAppend> xTextAppend =
m_aTextAppendStack.top().xTextAppend;
+    appendTableManager( );
+    appendTableHandler( );
     try
     {
         uno::Reference< lang::XServiceInfo > xSInfo( xShape,
uno::UNO_QUERY_THROW );
@@ -1705,15 +1707,12 @@ void DomainMapper_Impl::PushShapeContext(
const uno::Reference< drawing::XShape
                 xProps->setPropertyValue( rPropNameSupplier.GetName(
PROP_ANCHOR_TYPE ), bIsGraphic  ?  uno::makeAny(
text::TextContentAnchorType_AS_CHARACTER ) : uno::makeAny(
text::TextContentAnchorType_AT_PARAGRAPH ) );
             }
         }
-
-        appendTableManager( );
-        appendTableHandler( );
-        getTableManager().startLevel();
     }
     catch ( const uno::Exception& e )
     {
         SAL_WARN("writerfilter", "Exception when adding shape: " << e.Message);
     }
+    getTableManager().startLevel();
 }

it seems that that was introduced as a side effect of
http://cgit.freedesktop.org/libreoffice/core/commit/?id=d4fd86e3a48defbff29bfbabfbf0d2c5d95d39f5

Norbert


More information about the LibreOffice mailing list