mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-23 07:51:10 +01:00
[kerx] Better sanitize tupleKerning
This commit is contained in:
1 parent
14772da06f
commit
39b4ef6f18
1 file changed
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user