sw/qa/extras/ooxmlexport/data/tdf89731.docx |binary
 sw/qa/extras/ooxmlexport/ooxmlexport21.cxx  |    6 ++++++
 2 files changed, 6 insertions(+)

New commits:
commit d5d2f4ae1cb5f31f0fa1c5cd96df5e9d21311f4e
Author:     Adam Seskunas <[email protected]>
AuthorDate: Tue Aug 27 10:00:16 2024 -0700
Commit:     Xisco Fauli <[email protected]>
CommitDate: Wed Aug 28 07:36:15 2024 +0200

    tdf#89731 Add Unit test
    
    Change-Id: I4821148c0db374dd5ac5012fae0a69c0c9d31a83
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172474
    Tested-by: Jenkins
    Reviewed-by: Xisco Fauli <[email protected]>

diff --git a/sw/qa/extras/ooxmlexport/data/tdf89731.docx 
b/sw/qa/extras/ooxmlexport/data/tdf89731.docx
new file mode 100644
index 000000000000..8e67a8a969af
Binary files /dev/null and b/sw/qa/extras/ooxmlexport/data/tdf89731.docx differ
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport21.cxx 
b/sw/qa/extras/ooxmlexport/ooxmlexport21.cxx
index 4d4610c4e0aa..fb263897adda 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport21.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport21.cxx
@@ -1166,6 +1166,12 @@ CPPUNIT_TEST_FIXTURE(Test, testTdf131288)
     // With the fix in place word/embeddings/Microsoft_Excel-munkalap11.xlsx 
contains data
     CPPUNIT_ASSERT_EQUAL(sal_uInt64(9041), pStream->remainingSize());
 }
+
+CPPUNIT_TEST_FIXTURE(Test, testTdf89731)
+{
+    // Without the fix in place this crashes on opening
+    loadAndSave("tdf89731.docx");
+}
 } // end of anonymous namespace
 CPPUNIT_PLUGIN_IMPLEMENT();
 

Reply via email to