diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-08-06 15:35:29 +0100 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2022-08-10 11:49:14 +0200 |
commit | ddde8f60bcccde886676def369e5e3f271e7c92a (patch) | |
tree | 9b6cf8c23f06d56428eb6068389409c0028fa7bc /filter | |
parent | 9b119bb65280a9a0294652d343fdbe880609cd3a (diff) |
crashtesting: keep a reference to the passed in LibXSLTTransformer
otherwise, as seen with:
soffice --headless --convert-to docx forum-mso-de-42789.docx
and error will notify the other thread that the load has ended and the
other thread will destroy the passed in LibXSLTTransformer early while
this thread assumes it continues to exist
Change-Id: Ieea9ecc3439ea73cd0433e5e12b87811906c49aa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137819
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
(cherry picked from commit 5acf7bd13ed7f9d5c56a30f2be08a47d8e15d89c)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137956
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Tested-by: Mike Kaganski <mike.kaganski@collabora.com>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/xsltfilter/LibXSLTTransformer.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/filter/source/xsltfilter/LibXSLTTransformer.hxx b/filter/source/xsltfilter/LibXSLTTransformer.hxx index 6cfaebe69a92..8696bda6a34a 100644 --- a/filter/source/xsltfilter/LibXSLTTransformer.hxx +++ b/filter/source/xsltfilter/LibXSLTTransformer.hxx @@ -67,7 +67,7 @@ namespace XSLT static const sal_Int32 OUTPUT_BUFFER_SIZE; static const sal_Int32 INPUT_BUFFER_SIZE; - LibXSLTTransformer* m_transformer; + rtl::Reference<LibXSLTTransformer> m_transformer; Sequence<sal_Int8> m_readBuf; Sequence<sal_Int8> m_writeBuf; |