mirror of
https://git.freebsd.org/ports.git
synced 2025-06-03 11:56:28 -04:00
- 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:
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
|
@ -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}
|
||||
|
|
11
graphics/xpdf/files/patch-fofi_FoFiTrueType.cc
Normal file
11
graphics/xpdf/files/patch-fofi_FoFiTrueType.cc
Normal 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) {
|
Loading…
Add table
Reference in a new issue