1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00

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
This commit is contained in:
Joe Marcus Clarke 2004-04-18 04:53:13 +00:00
parent 34c2d2d1f7
commit 12d51abc48
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=107389
2 changed files with 15 additions and 1 deletions

View File

@ -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%/ \

View File

@ -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 )