- Add patch, which fixes crashes of viewers based on Poppler
- Bump PORTREVISION PR: 212867 Reported by: Bengt Ahlgren Obtained from: Upstream repository
This commit is contained in:
parent
8f8e79fb93
commit
f06cf93d66
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=422651
2 changed files with 18 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
|||
|
||||
PORTNAME= poppler
|
||||
PORTVERSION= 0.46.0
|
||||
PORTREVISION?= 0
|
||||
PORTREVISION?= 1
|
||||
CATEGORIES= graphics print
|
||||
MASTER_SITES= http://poppler.freedesktop.org/
|
||||
|
||||
|
|
17
graphics/poppler/files/patch-poppler_PDFDoc.cc
Normal file
17
graphics/poppler/files/patch-poppler_PDFDoc.cc
Normal file
|
@ -0,0 +1,17 @@
|
|||
From: Albert Astals Cid <aacid@kde.org>
|
||||
Date: Sat, 30 Jul 2016 17:32:59 +0200
|
||||
Subject: Fix abort on documents where the docinfo obj is not a dict
|
||||
|
||||
Bug #97134
|
||||
|
||||
--- poppler/PDFDoc.cc.orig 2016-07-05 21:37:01 UTC
|
||||
+++ poppler/PDFDoc.cc
|
||||
@@ -646,7 +646,7 @@ void PDFDoc::setDocInfoStringEntry(const
|
||||
GooString *PDFDoc::getDocInfoStringEntry(const char *key) {
|
||||
Object infoObj;
|
||||
getDocInfo(&infoObj);
|
||||
- if (infoObj.isNull()) {
|
||||
+ if (!infoObj.isDict()) {
|
||||
return NULL;
|
||||
}
|
||||
|
Loading…
Reference in a new issue