projects
/
platform
/
upstream
/
libHarfBuzzSharp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d4e526
)
[sbix] Rely on blob->as<> checking size against Type::min_size
author
Behdad Esfahbod
<behdad@behdad.org>
Wed, 31 Oct 2018 20:21:33 +0000
(13:21 -0700)
committer
Behdad Esfahbod
<behdad@behdad.org>
Wed, 31 Oct 2018 20:21:33 +0000
(13:21 -0700)
src/hb-ot-color-sbix-table.hh
patch
|
blob
|
history
diff --git
a/src/hb-ot-color-sbix-table.hh
b/src/hb-ot-color-sbix-table.hh
index
4feb4e1
..
065c0dd
100644
(file)
--- 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<PNGHeader>();
extents->x_bearing = x_offset;