summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vcl/source/filter/ipdf/pdfdocument.cxx4
-rw-r--r--xmlsecurity/qa/unit/pdfsigning/data/forcepoint16.pdfbin0 -> 51200 bytes
-rw-r--r--xmlsecurity/qa/unit/pdfsigning/pdfsigning.cxx2
3 files changed, 5 insertions, 1 deletions
diff --git a/vcl/source/filter/ipdf/pdfdocument.cxx b/vcl/source/filter/ipdf/pdfdocument.cxx
index af1eea1f57cf..98b6a2d8a596 100644
--- a/vcl/source/filter/ipdf/pdfdocument.cxx
+++ b/vcl/source/filter/ipdf/pdfdocument.cxx
@@ -1260,8 +1260,10 @@ bool PDFDocument::Read(SvStream& rStream)
if (pPrev)
nStartXRef = pPrev->GetValue();
- // Reset state, except object offsets and the edit buffer.
+ // Reset state, except the edit buffer.
m_aElements.clear();
+ m_aOffsetObjects.clear();
+ m_aIDObjects.clear();
m_aStartXRefs.clear();
m_aEOFs.clear();
m_pTrailer = nullptr;
diff --git a/xmlsecurity/qa/unit/pdfsigning/data/forcepoint16.pdf b/xmlsecurity/qa/unit/pdfsigning/data/forcepoint16.pdf
new file mode 100644
index 000000000000..9edccb47f40c
--- /dev/null
+++ b/xmlsecurity/qa/unit/pdfsigning/data/forcepoint16.pdf
Binary files differ
diff --git a/xmlsecurity/qa/unit/pdfsigning/pdfsigning.cxx b/xmlsecurity/qa/unit/pdfsigning/pdfsigning.cxx
index cb7fd4cfe945..8cf913279643 100644
--- a/xmlsecurity/qa/unit/pdfsigning/pdfsigning.cxx
+++ b/xmlsecurity/qa/unit/pdfsigning/pdfsigning.cxx
@@ -452,6 +452,8 @@ void PDFSigningTest::testTokenize()
"tdf107149.pdf",
// Nested parentheses were not handled.
"tdf114460.pdf",
+ // Valgrind was unhappy about this.
+ "forcepoint16.pdf",
};
for (const auto& rName : aNames)