summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2024-08-23 17:35:59 +0200
committerXisco Fauli <xiscofauli@libreoffice.org>2024-08-23 21:40:29 +0200
commit659842c2048aad10e7793f5e80fdc4956d9274d3 (patch)
tree70a6c087321311faec1a105c6cae2ec8bc417dbe /vcl
parent5dbc995f73da45ad99b95bc3119c75451b2c415d (diff)
tdf#162586: Check GetUpper is not nullptr
Change-Id: I3d56edda8de16a2d04d8f902d3db340fc191a506 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172322 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org> Tested-by: Jenkins
Diffstat (limited to 'vcl')
-rw-r--r--vcl/qa/cppunit/pdfexport/data/tdf162586.odtbin0 -> 15554 bytes
-rw-r--r--vcl/qa/cppunit/pdfexport/pdfexport.cxx6
2 files changed, 6 insertions, 0 deletions
diff --git a/vcl/qa/cppunit/pdfexport/data/tdf162586.odt b/vcl/qa/cppunit/pdfexport/data/tdf162586.odt
new file mode 100644
index 000000000000..ff523ff70663
--- /dev/null
+++ b/vcl/qa/cppunit/pdfexport/data/tdf162586.odt
Binary files differ
diff --git a/vcl/qa/cppunit/pdfexport/pdfexport.cxx b/vcl/qa/cppunit/pdfexport/pdfexport.cxx
index 897ab39df7d1..2e3b22601822 100644
--- a/vcl/qa/cppunit/pdfexport/pdfexport.cxx
+++ b/vcl/qa/cppunit/pdfexport/pdfexport.cxx
@@ -1959,6 +1959,12 @@ CPPUNIT_TEST_FIXTURE(PdfExportTest, testForcePoint3)
saveAsPDF(u"flowframe_null_ptr_deref.sample");
}
+CPPUNIT_TEST_FIXTURE(PdfExportTest, testTdf162586)
+{
+ // Without the fix in place, this test would have crashed
+ saveAsPDF(u"tdf162586.odt");
+}
+
CPPUNIT_TEST_FIXTURE(PdfExportTest, testTdf84283)
{
// Without the fix in place, this test would have crashed