aboutsummaryrefslogtreecommitdiff
path: root/graphics/poppler/files/patch-utils_HtmlOutputDev.cc
diff options
context:
space:
mode:
authorAshish SHUKLA <ashish@FreeBSD.org>2020-03-28 15:57:26 +0000
committerAshish SHUKLA <ashish@FreeBSD.org>2020-03-28 15:57:26 +0000
commite68265d9fe75cd03073a91515ede116948541bfd (patch)
tree69c134ded059b4e6ee07e728a537e3378cb2de1d /graphics/poppler/files/patch-utils_HtmlOutputDev.cc
parentae990f34231c03fdeb3c6aee52ff10d7eb905d2f (diff)
downloadports-e68265d9fe75cd03073a91515ede116948541bfd.tar.gz
ports-e68265d9fe75cd03073a91515ede116948541bfd.zip
- Add patches from upstream to fix segmentation fault with PDF files
which include links PR: 245093 Approved by: tcberner (from desktop@)
Notes
Notes: svn path=/head/; revision=529740
Diffstat (limited to 'graphics/poppler/files/patch-utils_HtmlOutputDev.cc')
-rw-r--r--graphics/poppler/files/patch-utils_HtmlOutputDev.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/graphics/poppler/files/patch-utils_HtmlOutputDev.cc b/graphics/poppler/files/patch-utils_HtmlOutputDev.cc
new file mode 100644
index 000000000000..b26c3a71513e
--- /dev/null
+++ b/graphics/poppler/files/patch-utils_HtmlOutputDev.cc
@@ -0,0 +1,11 @@
+--- utils/HtmlOutputDev.cc.orig 2020-03-01 19:52:52 UTC
++++ utils/HtmlOutputDev.cc
+@@ -1838,7 +1838,7 @@ int HtmlOutputDev::getOutlinePageNum(OutlineItem *item
+ if (!action || action->getKind() != actionGoTo)
+ return pagenum;
+
+- link = dynamic_cast<const LinkGoTo*>(action);
++ link = static_cast<const LinkGoTo*>(action);
+
+ if (!link || !link->isOk())
+ return pagenum;