[HarfBuzz] harfbuzz: Branch 'master'

Behdad Esfahbod behdad at kemper.freedesktop.org
Fri Oct 2 00:21:41 PDT 2015


 src/hb-ot-shape-normalize.cc |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 980e25cad2e58c31f5361862b9223d94ec47fc7a
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Fri Oct 2 08:21:12 2015 +0100

    Fix hb-ot-shape-normalize with empty buffer
    
    Part of https://github.com/behdad/harfbuzz/issues/136

diff --git a/src/hb-ot-shape-normalize.cc b/src/hb-ot-shape-normalize.cc
index a706461..09e48e3 100644
--- a/src/hb-ot-shape-normalize.cc
+++ b/src/hb-ot-shape-normalize.cc
@@ -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;


More information about the HarfBuzz mailing list