From 0216a96b0fd6bd1ab4030cd7097873a1063cd846 Mon Sep 17 00:00:00 2001 From: Qunxin Liu Date: Thu, 30 Jan 2020 12:36:58 -0800 Subject: [PATCH] [subset] Fix simple glyph trim_padding in glyf table Detail: when numOfContours = 1 and flag = 0x31 xCoordinates and yCoordinates would be empty --- src/hb-ot-glyf-table.hh | 1 - 1 file changed, 1 deletion(-) diff --git a/src/hb-ot-glyf-table.hh b/src/hb-ot-glyf-table.hh index 3eb2b56d6..92d3288e5 100644 --- a/src/hb-ot-glyf-table.hh +++ b/src/hb-ot-glyf-table.hh @@ -471,7 +471,6 @@ struct glyf unsigned int num_instructions = StructAtOffset (glyph, 0); glyph += 2 + num_instructions; - if (unlikely (glyph + 2 >= glyph_end)) return Glyph (); unsigned int coord_bytes = 0; unsigned int coords_with_flags = 0;