[glyf] Fix an allocation error
Try fixing assertion failure found by fuzzers: hb-draw-fuzzer: ../../src/harfbuzz/src/OT/glyf/glyf.hh:175: bool OT::glyf_accelerator_t::get_points(hb_font_t *, hb_codepoint_t, T) const [T = OT::glyf_impl::path_builder_t]: Assertion `count >= glyf_impl::PHANTOM_COUNT' failed.
This commit is contained in:
parent
556e7078f0
commit
3c49a6a60a
|
@ -195,7 +195,7 @@ struct Glyph
|
||||||
if (delta.x) all_points.translate (delta);
|
if (delta.x) all_points.translate (delta);
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return !all_points.in_error ();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool get_extents (hb_font_t *font, const glyf_accelerator_t &glyf_accelerator,
|
bool get_extents (hb_font_t *font, const glyf_accelerator_t &glyf_accelerator,
|
||||||
|
|
Loading…
Reference in New Issue