[CBDT] Fix offset handling
Fixes https://github.com/harfbuzz/harfbuzz/issues/960
This commit is contained in:
parent
da744c6b3e
commit
6aee3bb87c
|
@ -206,7 +206,7 @@ struct IndexSubtableRecord
|
||||||
TRACE_SANITIZE (this);
|
TRACE_SANITIZE (this);
|
||||||
return_trace (c->check_struct (this) &&
|
return_trace (c->check_struct (this) &&
|
||||||
firstGlyphIndex <= lastGlyphIndex &&
|
firstGlyphIndex <= lastGlyphIndex &&
|
||||||
offsetToSubtable.sanitize (c, this, lastGlyphIndex - firstGlyphIndex + 1));
|
offsetToSubtable.sanitize (c, base, lastGlyphIndex - firstGlyphIndex + 1));
|
||||||
}
|
}
|
||||||
|
|
||||||
inline bool get_extents (hb_glyph_extents_t *extents) const
|
inline bool get_extents (hb_glyph_extents_t *extents) const
|
||||||
|
|
Loading…
Reference in New Issue