[HarfBuzz] harfbuzz: Branch 'master'

Behdad Esfahbod behdad at kemper.freedesktop.org
Fri Mar 20 13:09:34 PDT 2015


 src/hb-buffer.cc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 9e401f6890f2bea1d11914bca436c2230f8d0f1b
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Fri Mar 20 16:08:38 2015 -0400

    Fix reverse_range() for empty range
    
    Fixes coretext notdef loop consisting of all default_ignorable glyphs
    
    https://code.google.com/p/chromium/issues/detail?id=464755

diff --git a/src/hb-buffer.cc b/src/hb-buffer.cc
index 942177c..b9fe263 100644
--- a/src/hb-buffer.cc
+++ b/src/hb-buffer.cc
@@ -443,7 +443,7 @@ hb_buffer_t::reverse_range (unsigned int start,
 {
   unsigned int i, j;
 
-  if (start == end - 1)
+  if (end - start < 2)
     return;
 
   for (i = start, j = end - 1; i < j; i++, j--) {


More information about the HarfBuzz mailing list