Fix segfault with empty buffer in hb_shape_plan_execute()
authorBehdad Esfahbod <behdad@behdad.org>
Fri, 2 Oct 2015 06:25:52 +0000 (07:25 +0100)
committerBehdad Esfahbod <behdad@behdad.org>
Fri, 2 Oct 2015 06:25:52 +0000 (07:25 +0100)
commit26ba4d1e1fb8949632fe08e6a7600badfba4f142
treeec4ddbeb023be63c8970d597a5f7f30de2eb9e53
parent432ffc47a46d41bea17d839d0d3980e654c6e638
Fix segfault with empty buffer in hb_shape_plan_execute()

Move the empty-buffer check from hb_shape_full() to hb_shape_plan_execute().

Reported by Simon Cozens.
src/hb-shape-plan.cc
src/hb-shape.cc