[CBDT] Fix offset handling

Fixes https://github.com/harfbuzz/harfbuzz/issues/960
This commit is contained in:
Behdad Esfahbod 2018-10-14 21:08:42 -07:00
parent da744c6b3e
commit 6aee3bb87c
1 changed files with 1 additions and 1 deletions

View File

@ -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