[kerx] Better sanitize tupleKerning

This commit is contained in:
Behdad Esfahbod committed 2018-11-07 13:48:45 -05:00
1 parent 14772da06f
commit 39b4ef6f18
1 file changed
+1 -1
+1 -1
View File
@@ -53,7 +53,7 @@ kerxTupleKern (int value,
unsigned int offset = value;
const FWORD *pv = &StructAtOffset<FWORD> (base, offset);
if (unlikely (!pv->sanitize (&c->sanitizer))) return 0;
if (unlikely (!c->sanitizer.check_array (pv, tupleCount))) return 0;
return *pv;
}