Avoid buffer->move_to() in case of buffer error
authorBehdad Esfahbod <behdad@behdad.org>
Fri, 19 Feb 2016 07:52:31 +0000 (14:52 +0700)
committerBehdad Esfahbod <behdad@behdad.org>
Fri, 19 Feb 2016 07:52:31 +0000 (14:52 +0700)
commitb87e36f6f119fac80b8fd55f3abae563c2c5b798
tree255d7ca6b0fb354e3439cacbc33bab60c3082d39
parent7e76bbabbaa56af314abff8ddba8866c634919cd
Avoid buffer->move_to() in case of buffer error

Fixes https://github.com/behdad/harfbuzz/issues/223

Right now we cannot test this because it has to be tested using hb-fuzzer.
We should move all fuzzing tests from test/shaping/tests/fuzzed.tests to
test/fuzzing/ and have its own test runner.  At that point, should add
test from this issue as well.
src/hb-buffer.cc
src/hb-ot-layout-gsubgpos-private.hh