diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-10-29 15:35:37 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-10-29 15:36:59 +0100 |
commit | b696781f03b33fca3604d03183dbad89cb3b9273 (patch) | |
tree | 1a5015618398851435f39c79ee0273500b65ab21 | |
parent | 930a3d462b05e111da37d31de7f60998ce9454b3 (diff) |
crashtesting: piles of pdf import crashes
e.g. ooo112863-2.pdf
Change-Id: I359f7e50f416f0a756e16099cdf47be3b1c32d90
-rw-r--r-- | xmlsecurity/source/pdfio/pdfdocument.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xmlsecurity/source/pdfio/pdfdocument.cxx b/xmlsecurity/source/pdfio/pdfdocument.cxx index 4d6cbd4fd9b7..2125749863df 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) |