Check for closing quote in parse_tag

Fixes #4414.
This commit is contained in:
jfkthame 2023-09-29 13:15:01 +01:00 committed by Behdad Esfahbod
parent 333946b00e
commit f360d704fa

View file

@ -815,7 +815,7 @@ parse_tag (const char **pp, const char *end, hb_tag_t *tag)
}
const char *p = *pp;
while (*pp < end && (**pp != ' ' && **pp != '=' && **pp != '['))
while (*pp < end && (**pp != ' ' && **pp != '=' && **pp != '[' && **pp != quote))
(*pp)++;
if (p == *pp || *pp - p > 4)