From: Behdad Esfahbod Date: Wed, 31 Oct 2018 20:21:33 +0000 (-0700) Subject: [sbix] Rely on blob->as<> checking size against Type::min_size X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=995bf6c6f82d6b2dabcb81e1426910ee82b91b44;p=platform%2Fupstream%2FlibHarfBuzzSharp.git [sbix] Rely on blob->as<> checking size against Type::min_size --- 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;