Fix hb-ot-shape-normalize with empty buffer

Part of https://github.com/behdad/harfbuzz/issues/136
This commit is contained in:
Behdad Esfahbod 2015-10-02 08:21:12 +01:00
parent a5efaac4ff
commit 980e25cad2
1 changed files with 2 additions and 0 deletions

View File

@ -290,6 +290,8 @@ _hb_ot_shape_normalize (const hb_ot_shape_plan_t *plan,
hb_buffer_t *buffer,
hb_font_t *font)
{
if (unlikely (!buffer->len)) return;
_hb_buffer_assert_unicode_vars (buffer);
hb_ot_shape_normalization_mode_t mode = plan->shaper->normalization_preference;