From 6ce25f57c663f86326262a5ff7a42288f358ed51 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 11 Aug 2017 19:31:05 -0700 Subject: [PATCH] Fix hb_buffer_append() Ouch! --- src/hb-buffer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-buffer.cc b/src/hb-buffer.cc index 0b3f8135a..297956e6b 100644 --- a/src/hb-buffer.cc +++ b/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;