src/hb-buffer.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 6ce25f57c663f86326262a5ff7a42288f358ed51
Author: Behdad Esfahbod <[email protected]>
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;
_______________________________________________
HarfBuzz mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/harfbuzz