From 3a1b0f0a72525d847197a8446d9503e44b1f2add Mon Sep 17 00:00:00 2001 From: jfkthame Date: Fri, 29 Sep 2023 13:15:01 +0100 Subject: [PATCH] Check for closing quote in parse_tag Fixes #4414. --- src/hb-common.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-common.cc b/src/hb-common.cc index bd4cd88e34f..0c13c7d171f 100644 --- a/src/hb-common.cc +++ b/src/hb-common.cc @@ -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)