Reject tags longer than 4 chars in hb_feature_from_string()

This commit is contained in:
Behdad Esfahbod 2014-07-25 11:39:55 -04:00
parent 7e8c389546
commit f4fe9baefd
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ parse_feature_tag (const char **pp, const char *end, hb_feature_t *feature)
(*pp)++;
#undef ISALNUM
if (p == *pp)
if (p == *pp || *pp - p > 4)
return false;
feature->tag = hb_tag_from_string (p, *pp - p);