diff options
author | marcus <marcus@FreeBSD.org> | 2004-04-18 04:53:13 +0000 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2004-04-18 04:53:13 +0000 |
commit | e86f1d3be2bf8225e00ae4c7a716dde6584ab361 (patch) | |
tree | 0ca75ecfcdfcd7fe3486e5fe4e05fdecdca55202 /print | |
parent | eb1a5d65bcd44dd33438bb44c52014e40bf7c585 (diff) | |
download | FreeBSD-ports-e86f1d3be2bf8225e00ae4c7a716dde6584ab361.zip FreeBSD-ports-e86f1d3be2bf8225e00ae4c7a716dde6584ab361.tar.gz |
Check for the eexec keyword in type1 fonts. This fixes a potential hang
when viewing certain PDF documents.
Submitted by: Jeremy Messenger <mezz7@cox.net>
Obtained from: FreeType CVS
More info: http://bugzilla.gnome.org/show_bug.cgi?id=129400
Diffstat (limited to 'print')
-rw-r--r-- | print/freetype2/Makefile | 2 | ||||
-rw-r--r-- | print/freetype2/files/patch-src::type1::t1load.c | 14 |
2 files changed, 15 insertions, 1 deletions
diff --git a/print/freetype2/Makefile b/print/freetype2/Makefile index 6dbe5a1..a1566d8 100644 --- a/print/freetype2/Makefile +++ b/print/freetype2/Makefile @@ -7,7 +7,7 @@ PORTNAME= freetype2 PORTVERSION= 2.1.7 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= print MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:S,%SUBDIR%,freetype,} \ http://sunsite.cnlab-switch.ch/ftp/mirror/freetype/%SUBDIR%/ \ diff --git a/print/freetype2/files/patch-src::type1::t1load.c b/print/freetype2/files/patch-src::type1::t1load.c new file mode 100644 index 0000000..5579ba4 --- /dev/null +++ b/print/freetype2/files/patch-src::type1::t1load.c @@ -0,0 +1,14 @@ +--- src/type1/t1load.c.orig Sat Apr 17 21:32:53 2004 ++++ src/type1/t1load.c Sat Apr 17 21:34:43 2004 +@@ -1527,6 +1527,11 @@ + parser->root.cursor = cur2; + } + ++ /* look for `eexec' */ ++ else if ( *cur == 'e' && cur + 5 < limit && ++ ft_strncmp( (char*)cur, "eexec", 5 ) == 0 ) ++ break; ++ + /* look for `closefile' which ends the eexec section */ + else if ( *cur == 'c' && cur + 9 < limit && + ft_strncmp( (char*)cur, "closefile", 9 ) == 0 ) |