Fix hb_buffer_append()

Ouch!
pull/522/head
Behdad Esfahbod 7 years ago
parent 1c17c2bde5
commit 6ce25f57c6
  1. 2
      src/hb-buffer.cc

@ -1730,7 +1730,7 @@ hb_buffer_append (hb_buffer_t *buffer,
if (!buffer->len)
buffer->content_type = source->content_type;
if (buffer->len + (end - start) > buffer->len) /* Overflows. */
if (buffer->len + (end - start) < buffer->len) /* Overflows. */
{
buffer->in_error = true;
return;

Loading…
Cancel
Save