diff options
author | Jan-Marek Glogowski <jan-marek.glogowski@extern.cib.de> | 2020-01-20 22:49:31 +0100 |
---|---|---|
committer | Jan-Marek Glogowski <glogow@fbihome.de> | 2020-01-30 15:35:03 +0100 |
commit | b87af9775167002d36a3bc16cb308ea7895d7ea0 (patch) | |
tree | 02507035fb6df79ea53cf5bdfeac9b0465c899f8 /sw | |
parent | 7f56bbe3a09265a62792dc0624fdb44f8c176172 (diff) |
tdf#129659 DOCX check global footnote context
Since tdf#121441 we parse custom footnotes to get at least the
DOCX footnote text, even if we can't represent the formating. This
might push additional contexts to the parser stack. Therefore it's
now not sufficient to check the current context for a footnote,
but one has to check the global parser for a footnote context.
The actual bug is the unsupported footnote page break, which was
not correctly ignored and added a paragraph context to the stack,
resulting in the async substream input and output stack size.
Change-Id: I143254e7df37a619cb4efb542b58d3eff3afffa7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87114
Tested-by: Jenkins
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/qa/extras/ooxmlimport/data/tdf129659.docx | bin | 0 -> 18584 bytes | |||
-rw-r--r-- | sw/qa/extras/ooxmlimport/ooxmlimport2.cxx | 5 |
2 files changed, 5 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlimport/data/tdf129659.docx b/sw/qa/extras/ooxmlimport/data/tdf129659.docx Binary files differnew file mode 100644 index 000000000000..38bd040d59bd --- /dev/null +++ b/sw/qa/extras/ooxmlimport/data/tdf129659.docx diff --git a/sw/qa/extras/ooxmlimport/ooxmlimport2.cxx b/sw/qa/extras/ooxmlimport/ooxmlimport2.cxx index 593947fd77ab..7ba2aae3d74a 100644 --- a/sw/qa/extras/ooxmlimport/ooxmlimport2.cxx +++ b/sw/qa/extras/ooxmlimport/ooxmlimport2.cxx @@ -536,6 +536,11 @@ DECLARE_OOXMLIMPORT_TEST(testTdf130214, "tdf130214.docx") // Currently this file imports with errors because of tdf#126435; it must not segfault on load } +DECLARE_OOXMLIMPORT_TEST(testTdf129659, "tdf129659.docx") +{ + // don't crash on footnote with page break +} + // tests should only be added to ooxmlIMPORT *if* they fail round-tripping in ooxmlEXPORT CPPUNIT_PLUGIN_IMPLEMENT(); |