Check for closing quote in parse_tag

Fixes #4414.
pull/4425/head
jfkthame 1 year ago committed by Behdad Esfahbod
parent 333946b00e
commit f360d704fa
  1. 2
      src/hb-common.cc

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

Loading…
Cancel
Save