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

New commits:
commit b696781f03b33fca3604d03183dbad89cb3b9273
Author: Caolán McNamara <caol...@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)
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to