commit | 980e25cad2e58c31f5361862b9223d94ec47fc7a | [log] [tgz] |
---|---|---|
author | Behdad Esfahbod <[email protected]> | Fri Oct 02 08:21:12 2015 +0100 |
committer | Behdad Esfahbod <[email protected]> | Fri Oct 02 08:21:12 2015 +0100 |
tree | 20da02e206558042da9a5647d3627e26ea5497f4 | |
parent | a5efaac4ff61b587f228830b265b39fe8e5e4e47 [diff] |
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_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;