[sbix] Rely on blob->as<> checking size against Type::min_size

This commit is contained in:
Behdad Esfahbod 2018-10-31 13:21:33 -07:00
parent 4d4e526b5c
commit 995bf6c6f8
1 changed files with 0 additions and 6 deletions

View File

@ -243,12 +243,6 @@ struct sbix
unsigned int strike_ppem = 0;
hb_blob_t *blob = reference_png (font, glyph, &x_offset, &y_offset, &strike_ppem);
if (unlikely (blob->length < sizeof (PNGHeader)))
{
hb_blob_destroy (blob);
return false;
}
const PNGHeader &png = *blob->as<PNGHeader>();
extents->x_bearing = x_offset;