diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-12-05 12:03:56 +0000 |
---|---|---|
committer | Michael Stahl <michael.stahl@cib.de> | 2019-12-07 20:38:01 +0100 |
commit | c29b89acc59f5913068f60d670e72918121e4e84 (patch) | |
tree | a9a24f7a13ff8c924fc0e8bf40dbe2235b0a23ce /sw | |
parent | 04159aab6827e22a67a0c7bc4d68b4a999d51318 (diff) |
ofz#18563 test case for assert/crash
Change-Id: Idb98b7fae03bc31fc050519a7b0720208adeb843
Reviewed-on: https://gerrit.libreoffice.org/84556
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@cib.de>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/inc/shellio.hxx | 1 | ||||
-rw-r--r-- | sw/qa/extras/uiwriter/data2/ofz18563.docx | bin | 0 -> 7102 bytes | |||
-rw-r--r-- | sw/qa/extras/uiwriter/uiwriter2.cxx | 9 |
3 files changed, 10 insertions, 0 deletions
diff --git a/sw/inc/shellio.hxx b/sw/inc/shellio.hxx index b4004898ad77..82da722ac10d 100644 --- a/sw/inc/shellio.hxx +++ b/sw/inc/shellio.hxx @@ -190,6 +190,7 @@ namespace o3tl { }; extern "C" SAL_DLLPUBLIC_EXPORT bool TestImportDOC(SvStream &rStream, const OUString &rFltName); +extern "C" SAL_DLLPUBLIC_EXPORT bool TestImportDOCX(SvStream &rStream); extern "C" SAL_DLLPUBLIC_EXPORT bool TestImportRTF(SvStream &rStream); extern "C" SAL_DLLPUBLIC_EXPORT bool TestImportHTML(SvStream &rStream); SAL_DLLPUBLIC_EXPORT void FlushFontCache(); diff --git a/sw/qa/extras/uiwriter/data2/ofz18563.docx b/sw/qa/extras/uiwriter/data2/ofz18563.docx Binary files differnew file mode 100644 index 000000000000..6733db44abb7 --- /dev/null +++ b/sw/qa/extras/uiwriter/data2/ofz18563.docx diff --git a/sw/qa/extras/uiwriter/uiwriter2.cxx b/sw/qa/extras/uiwriter/uiwriter2.cxx index 4a317d194ad5..79601dfddcd5 100644 --- a/sw/qa/extras/uiwriter/uiwriter2.cxx +++ b/sw/qa/extras/uiwriter/uiwriter2.cxx @@ -48,6 +48,7 @@ #include <PostItMgr.hxx> #include <postithelper.hxx> #include <fmtcntnt.hxx> +#include <shellio.hxx> namespace { @@ -2412,4 +2413,12 @@ CPPUNIT_TEST_FIXTURE(SwUiWriterTest2, testTdf128603) CPPUNIT_ASSERT_EQUAL(pIndex4->GetIndex(), pIndex5->GetIndex()); } +// only care that it doesn't assert/crash +CPPUNIT_TEST_FIXTURE(SwUiWriterTest2, testOfz18563) +{ + OUString sURL(m_directories.getURLFromSrc("/sw/qa/extras/uiwriter/data2/ofz18563.docx")); + SvFileStream aFileStream(sURL, StreamMode::READ); + TestImportDOCX(aFileStream); +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |