PORTNAME= xpdf
PORTVERSION= 3.04
PORTREVISION= 10
PORTREVISION= 11
CATEGORIES= graphics print
MASTER_SITES= http://mirrors.rit.edu/zi/ \
MASTER_SITES= https://xpdfreader-dl.s3.amazonaws.com/old/
ftp://ftp.foolabs.com/pub/xpdf/ \
TEX_CTAN/support/xpdf \
http://komquats.com/distfiles/
.if !defined(MASTERDIR)
PKGNAMESUFFIX= 3
CONFLICTS_INSTALL= xpdf4-* xpdf-*
--- xpdf/TextOutputDev.cc.orig 2019-10-04 19:39:06 UTC
+++ xpdf/TextOutputDev.cc
@@ -2472,6 +2472,12 @@ TextBlock *TextPage::split(GList *charsA, int rot) {
//----- compute the horizontal and vertical profiles
+ if (xMin / splitPrecision < 0.5 * INT_MIN ||
+ xMax / splitPrecision > 0.5 * INT_MAX ||
+ yMin / splitPrecision < 0.5 * INT_MIN ||
+ xMax / splitPrecision > 0.5 * INT_MAX) {
+ return NULL;
+ }
// add some slack to the array bounds to avoid floating point
// precision problems
xMinI = (int)floor(xMin / splitPrecision) - 1;
It can also convert PDF input to ps, text, and info formats; and
split out fonts and images.
WWW: http://www.foolabs.com/xpdf/
WWW: https://www.xpdfreader.com/