[Libreoffice-commits] core.git: xmlsecurity/source

Caolán McNamara caolanm at redhat.com
Sat Oct 29 14:37:29 UTC 2016


 xmlsecurity/source/pdfio/pdfdocument.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit b696781f03b33fca3604d03183dbad89cb3b9273
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Sat Oct 29 15:35:37 2016 +0100

    crashtesting: piles of pdf import crashes
    
    e.g. ooo112863-2.pdf
    
    Change-Id: I359f7e50f416f0a756e16099cdf47be3b1c32d90

diff --git a/xmlsecurity/source/pdfio/pdfdocument.cxx b/xmlsecurity/source/pdfio/pdfdocument.cxx
index 4d6cbd4..2125749 100644
--- a/xmlsecurity/source/pdfio/pdfdocument.cxx
+++ b/xmlsecurity/source/pdfio/pdfdocument.cxx
@@ -1427,6 +1427,9 @@ std::vector<PDFObjectElement*> PDFDocument::GetSignatureWidgets()
 
     for (const auto& pPage : aPages)
     {
+        if (!pPage)
+            continue;
+
         PDFElement* pAnnotsElement = pPage->Lookup("Annots");
         auto pAnnots = dynamic_cast<PDFArrayElement*>(pAnnotsElement);
         if (!pAnnots)


More information about the Libreoffice-commits mailing list