[HarfBuzz] harfbuzz: Branch 'master'
Behdad Esfahbod
behdad at kemper.freedesktop.org
Sat Aug 12 02:31:25 UTC 2017
src/hb-buffer.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 6ce25f57c663f86326262a5ff7a42288f358ed51
Author: Behdad Esfahbod <behdad at behdad.org>
Date: Fri Aug 11 19:31:05 2017 -0700
Fix hb_buffer_append()
Ouch!
diff --git a/src/hb-buffer.cc b/src/hb-buffer.cc
index 0b3f8135..297956e6 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;
More information about the HarfBuzz
mailing list