From 995bf6c6f82d6b2dabcb81e1426910ee82b91b44 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 31 Oct 2018 13:21:33 -0700 Subject: [PATCH] [sbix] Rely on blob->as<> checking size against Type::min_size --- src/hb-ot-color-sbix-table.hh | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/hb-ot-color-sbix-table.hh b/src/hb-ot-color-sbix-table.hh index 4feb4e1..065c0dd 100644 --- a/src/hb-ot-color-sbix-table.hh +++ b/src/hb-ot-color-sbix-table.hh @@ -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(); extents->x_bearing = x_offset; -- 2.7.4