提交 0af3d176 编写于 作者: K Khaled Hosny

[sbix] Fix memory leak in early return

Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=11210
上级 edaa7682
...@@ -244,7 +244,10 @@ struct sbix ...@@ -244,7 +244,10 @@ struct sbix
hb_blob_t *blob = reference_png (font, glyph, &x_offset, &y_offset, &strike_ppem); hb_blob_t *blob = reference_png (font, glyph, &x_offset, &y_offset, &strike_ppem);
if (unlikely (blob->length < sizeof (PNGHeader))) if (unlikely (blob->length < sizeof (PNGHeader)))
{
hb_blob_destroy (blob);
return false; return false;
}
const PNGHeader &png = *blob->as<PNGHeader>(); const PNGHeader &png = *blob->as<PNGHeader>();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册