From 61707266a3ea9fc54323742de6559fb00987dc29 Mon Sep 17 00:00:00 2001 From: blueshade7 Date: Tue, 19 Nov 2019 17:09:12 -0800 Subject: [PATCH] fix get_sid crash --- src/hb-ot-cff1-table.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-ot-cff1-table.hh b/src/hb-ot-cff1-table.hh index 8800b8eed..398d79a2d 100644 --- a/src/hb-ot-cff1-table.hh +++ b/src/hb-ot-cff1-table.hh @@ -1279,7 +1279,7 @@ struct cff1 /* fill glyph_names */ for (hb_codepoint_t gid = 0; gid < num_glyphs; gid++) { - hb_codepoint_t sid = charset->get_sid (gid, num_glyphs); + hb_codepoint_t sid = glyph_to_sid (gid); gname_t gname; gname.sid = sid; if (sid < cff1_std_strings_length)