[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:
Behdad Esfahbod 2022-06-27 10:57:51 -06:00
parent 556e7078f0
commit 3c49a6a60a
1 changed files with 1 additions and 1 deletions

View File

@ -195,7 +195,7 @@ struct Glyph
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,