Fix check
This commit is contained in:
parent
4df8eb200d
commit
4b461785bd
|
@ -113,6 +113,8 @@ struct KerxSubTableFormat2
|
||||||
unsigned int r = *(this+rightClassTable).get_value (right, num_glyphs);
|
unsigned int r = *(this+rightClassTable).get_value (right, num_glyphs);
|
||||||
unsigned int offset = l + r;
|
unsigned int offset = l + r;
|
||||||
const FWORD *arr = &(this+array);
|
const FWORD *arr = &(this+array);
|
||||||
|
if (unlikely ((const void *) arr < (const void *) this || (const void *) arr >= (const void *) end))
|
||||||
|
return 0;
|
||||||
const FWORD *v = &StructAtOffset<FWORD> (arr, offset);
|
const FWORD *v = &StructAtOffset<FWORD> (arr, offset);
|
||||||
if (unlikely ((const void *) v < (const void *) arr || (const void *) (v + 1) > (const void *) end))
|
if (unlikely ((const void *) v < (const void *) arr || (const void *) (v + 1) > (const void *) end))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -74,7 +74,9 @@ hb_aat_layout_substitute (hb_ot_shape_plan_t *plan,
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
hb_aat_layout_position (hb_font_t *font, hb_buffer_t *buffer)
|
hb_aat_layout_position (hb_ot_shape_plan_t *plan,
|
||||||
|
hb_font_t *font,
|
||||||
|
hb_buffer_t *buffer)
|
||||||
{
|
{
|
||||||
#if 0
|
#if 0
|
||||||
hb_blob_t *blob;
|
hb_blob_t *blob;
|
||||||
|
|
Loading…
Reference in New Issue