diff options
author | Andreas K. Hüttel <dilfridge@gentoo.org> | 2017-05-30 21:47:26 +0200 |
---|---|---|
committer | Andreas K. Hüttel <dilfridge@gentoo.org> | 2017-05-30 21:47:38 +0200 |
commit | 6376e44deab97a83ce365b4b71b1a5db468f52a6 (patch) | |
tree | 6a978a5df79323a7fe76dec0fafcfbf777f3a5c8 /app-text/poppler/files | |
parent | sci-mathematics/maxima: bump to 5.40.0 (diff) | |
download | gentoo-6376e44deab97a83ce365b4b71b1a5db468f52a6.tar.gz gentoo-6376e44deab97a83ce365b4b71b1a5db468f52a6.tar.bz2 gentoo-6376e44deab97a83ce365b4b71b1a5db468f52a6.zip |
app-text/poppler: Revision bump for bug 620198
Package-Manager: Portage-2.3.6, Repoman-2.3.2
Diffstat (limited to 'app-text/poppler/files')
-rw-r--r-- | app-text/poppler/files/poppler-0.55.0-CVE-2017-7511.patch | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/app-text/poppler/files/poppler-0.55.0-CVE-2017-7511.patch b/app-text/poppler/files/poppler-0.55.0-CVE-2017-7511.patch new file mode 100644 index 000000000000..64df1cfde436 --- /dev/null +++ b/app-text/poppler/files/poppler-0.55.0-CVE-2017-7511.patch @@ -0,0 +1,57 @@ +From 5c9b08a875b07853be6c44e43ff5f7f059df666a Mon Sep 17 00:00:00 2001 +From: Albert Astals Cid <aacid@kde.org> +Date: Sat, 27 May 2017 00:09:17 +0200 +Subject: pdfunite: Fix crash with broken documents + +Sometimes we can't parse pages so check before accessing them + +Thanks to Jiaqi Peng for the report + +Fixes bugs #101153 and #101149 + +diff --git a/utils/pdfunite.cc b/utils/pdfunite.cc +index dfe48bf..c32e201 100644 +--- a/utils/pdfunite.cc ++++ b/utils/pdfunite.cc +@@ -7,7 +7,7 @@ + // Copyright (C) 2011-2015, 2017 Thomas Freitag <Thomas.Freitag@alfa.de> + // Copyright (C) 2012 Arseny Solokha <asolokha@gmx.com> + // Copyright (C) 2012 Fabio D'Urso <fabiodurso@hotmail.it> +-// Copyright (C) 2012, 2014 Albert Astals Cid <aacid@kde.org> ++// Copyright (C) 2012, 2014, 2017 Albert Astals Cid <aacid@kde.org> + // Copyright (C) 2013 Adrian Johnson <ajohnson@redneon.com> + // Copyright (C) 2013 Hib Eris <hib@hiberis.nl> + // Copyright (C) 2015 Arthur Stavisky <vovodroid@gmail.com> +@@ -268,15 +268,15 @@ int main (int argc, char *argv[]) + catDict->lookup("OutputIntents", &intents); + catDict->lookupNF("AcroForm", &afObj); + Ref *refPage = docs[0]->getCatalog()->getPageRef(1); +- if (!afObj.isNull()) { ++ if (!afObj.isNull() && refPage) { + docs[0]->markAcroForm(&afObj, yRef, countRef, 0, refPage->num, refPage->num); + } + catDict->lookupNF("OCProperties", &ocObj); +- if (!ocObj.isNull() && ocObj.isDict()) { ++ if (!ocObj.isNull() && ocObj.isDict() && refPage) { + docs[0]->markPageObjects(ocObj.getDict(), yRef, countRef, 0, refPage->num, refPage->num); + } + catDict->lookup("Names", &names); +- if (!names.isNull() && names.isDict()) { ++ if (!names.isNull() && names.isDict() && refPage) { + docs[0]->markPageObjects(names.getDict(), yRef, countRef, 0, refPage->num, refPage->num); + } + if (intents.isArray() && intents.arrayGetLength() > 0) { +@@ -353,6 +353,10 @@ int main (int argc, char *argv[]) + + for (i = 0; i < (int) docs.size(); i++) { + for (j = 1; j <= docs[i]->getNumPages(); j++) { ++ if (!docs[i]->getCatalog()->getPage(j)) { ++ continue; ++ } ++ + PDFRectangle *cropBox = NULL; + if (docs[i]->getCatalog()->getPage(j)->isCropped()) + cropBox = docs[i]->getCatalog()->getPage(j)->getCropBox(); +-- +cgit v0.10.2 + |