summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsuzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>2021-08-25 00:31:26 +0900
committersuzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>2021-08-25 00:31:26 +0900
commit50318357907692ee1ca1f032bec73a2f8d9cb65f (patch)
tree1ca18c0c9e7838e20700e787021debc56fc786fe
parentc4fc0e690c452fe2ea3ad909a2ae484cf34c7742 (diff)
downloadfreetype2-50318357907692ee1ca1f032bec73a2f8d9cb65f.tar.gz
[truetype] Fix for the family name shorter than 8 characters.
* src/truetype/ttobjs.c (tt_skip_pdffont_random_tag): If the family name to be checked is shorter than 8 characters, do not check its syntax.
-rw-r--r--src/truetype/ttobjs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/truetype/ttobjs.c b/src/truetype/ttobjs.c
index 9029aea4d..b70f9a91a 100644
--- a/src/truetype/ttobjs.c
+++ b/src/truetype/ttobjs.c
@@ -156,7 +156,7 @@
unsigned int i;
- if ( name[6] != '+' )
+ if ( ft_strlen( name ) < 8 || name[6] != '+' )
return name;
for ( i = 0; i < 6; i++ )