[HB] Fix buffer enlargement. Ouch

This commit is contained in:
Behdad Esfahbod 2009-07-28 15:50:42 -04:00
parent f9cd1014f8
commit b196e6f274
1 changed files with 1 additions and 1 deletions

View File

@ -244,7 +244,7 @@ _hb_buffer_add_output_glyphs (hb_buffer_t *buffer,
unsigned int properties;
unsigned int cluster;
if (buffer->out_string == buffer->in_string &&
if (buffer->out_string != buffer->in_string ||
buffer->out_pos + num_out > buffer->in_pos + num_in)
{
hb_buffer_ensure_separate (buffer, buffer->out_pos + num_out);