View | Details | Raw Unified | Return to bug 241066
Collapse All | Expand All

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

Return to bug 241066