xmlsecurity/qa/unit/pdfsigning/data/tdf145312.pdf |binary xmlsecurity/qa/unit/pdfsigning/pdfsigning.cxx | 6 ++++++ 2 files changed, 6 insertions(+)
New commits: commit 4351a6ca782e1d2081ba819338ebbf6a2d2ee2b2 Author: Xisco Fauli <xiscofa...@libreoffice.org> AuthorDate: Thu May 5 12:31:46 2022 +0200 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Thu May 5 15:17:40 2022 +0200 tdf#145312: xmlsecurity_pdfsigning: Add unittest Change-Id: I12d6af46d13daa06eab98cdf81c82c6f5f41b5c4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133881 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> diff --git a/xmlsecurity/qa/unit/pdfsigning/data/tdf145312.pdf b/xmlsecurity/qa/unit/pdfsigning/data/tdf145312.pdf new file mode 100644 index 000000000000..6ff43f87e7ea Binary files /dev/null and b/xmlsecurity/qa/unit/pdfsigning/data/tdf145312.pdf differ diff --git a/xmlsecurity/qa/unit/pdfsigning/pdfsigning.cxx b/xmlsecurity/qa/unit/pdfsigning/pdfsigning.cxx index f9e2cab1b365..c4c5dcf077b3 100644 --- a/xmlsecurity/qa/unit/pdfsigning/pdfsigning.cxx +++ b/xmlsecurity/qa/unit/pdfsigning/pdfsigning.cxx @@ -374,6 +374,12 @@ CPPUNIT_TEST_FIXTURE(PDFSigningTest, testPDF16Adobe) verify(m_directories.getURLFromSrc(DATA_DIRECTORY) + "pdf16adobe.pdf", 1); } +CPPUNIT_TEST_FIXTURE(PDFSigningTest, testTdf145312) +{ + // Without the fix in place, this test would have crashed + verify(m_directories.getURLFromSrc(DATA_DIRECTORY) + "tdf145312.pdf", 2); +} + /// Test adding a signature to a PDF 1.6 document. CPPUNIT_TEST_FIXTURE(PDFSigningTest, testPDF16Add) {