- Fix an issue related when a file has bad TTF fonts that do a crash in XPDF.

- Bump PORTREVISION.

Submitted by:	stas (via mail)
Feature safe:	yes
This commit is contained in:
Marcelo Araujo 2011-01-12 17:01:50 +00:00
parent 20a1d08d76
commit 0218cd226b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=267702
2 changed files with 12 additions and 1 deletions

View file

@ -7,7 +7,7 @@
PORTNAME= xpdf
PORTVERSION= 3.02
PORTREVISION= 14
PORTREVISION= 15
CATEGORIES= graphics print
MASTER_SITES= ftp://ftp.foolabs.com/pub/xpdf/ \
${MASTER_SITE_TEX_CTAN}

View file

@ -0,0 +1,11 @@
--- fofi/FoFiTrueType.cc.orig 2010-12-29 12:13:14.000000000 -0800
+++ fofi/FoFiTrueType.cc 2010-12-29 12:15:15.000000000 -0800
@@ -906,7 +906,7 @@
// check for an incorrect cmap table length
badCmapLen = gFalse;
cmapLen = 0; // make gcc happy
- if (!missingCmap) {
+ if (!missingCmap && cmaps != NULL && nCmaps != 0) {
cmapLen = cmaps[0].offset + cmaps[0].len;
for (i = 1; i < nCmaps; ++i) {
if (cmaps[i].offset + cmaps[i].len > cmapLen) {