Minor
authorBehdad Esfahbod <behdad@behdad.org>
Fri, 10 May 2019 23:26:19 +0000 (16:26 -0700)
committerBehdad Esfahbod <behdad@behdad.org>
Sat, 11 May 2019 01:43:48 +0000 (18:43 -0700)
src/hb-ot-layout-common.hh

index 06062ea..40349a0 100644 (file)
@@ -1224,7 +1224,7 @@ struct ClassDefFormat1
     hb_codepoint_t glyph_max = +glyphs | hb_reduce (hb_max, 0u);
 
     startGlyph = glyph_min;
-    classValue.len = glyph_max - glyph_min + 1;
+    c->check_assign (classValue.len, glyph_max - glyph_min + 1);
     if (unlikely (!c->extend (classValue))) return_trace (false);
 
     for (unsigned int i = 0; i < glyphs.length; i++)