[kerx] Better sanitize tupleKerning

This commit is contained in:
Behdad Esfahbod 2018-11-07 13:48:45 -05:00
parent 14772da06f
commit 39b4ef6f18
1 changed files with 1 additions and 1 deletions

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;
}