Fix hb_buffer_append()
Ouch!
This commit is contained in:
parent
1c17c2bde5
commit
6ce25f57c6
@ -1730,7 +1730,7 @@ hb_buffer_append (hb_buffer_t *buffer,
|
|||||||
if (!buffer->len)
|
if (!buffer->len)
|
||||||
buffer->content_type = source->content_type;
|
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;
|
buffer->in_error = true;
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user