From 19b78d56cdec354d4f35bf6ae529f670cba88fb3 Mon Sep 17 00:00:00 2001 From: Ebrahim Byagowi Date: Mon, 24 Feb 2020 09:08:01 +0330 Subject: [PATCH] [gvar] Accept coord_count even if is higher than gvar's axisCount --- src/hb-ot-var-gvar-table.hh | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hb-ot-var-gvar-table.hh b/src/hb-ot-var-gvar-table.hh index 2df0bfddd..1d64aa923 100644 --- a/src/hb-ot-var-gvar-table.hh +++ b/src/hb-ot-var-gvar-table.hh @@ -563,6 +563,7 @@ struct gvar const int *coords, unsigned int coord_count, const hb_array_t points) const { + coord_count = hb_min (coord_count, gvar_table->axisCount); if (!coord_count || coord_count != gvar_table->axisCount) return true; const GlyphVarData *var_data = gvar_table->get_glyph_var_data (glyph);