shithub: freetype+ttf2subf

Download patch

ref: 7b1c7585d7ab929d9b29932d6697a22149162c13
parent: 81445c034aca36040b6311dc71a2cbed9548b262
author: Alexei Podtelezhnikov <apodtele@gmail.com>
date: Wed Jun 26 16:18:00 EDT 2019

* src/bdf/bdfdrivr.c (bdf_cmap_char_{index,next}): Fix inequality.

Reported by Armin Hasitzka.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2019-06-26  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+	* src/bdf/bdfdrivr.c (bdf_cmap_char_{index,next}): Fix inequality.
+
+	Reported by Armin Hasitzka.
+
 2019-06-16  Werner Lemberg  <wl@gnu.org>
 
 	* src/tools/apinames.c: Formatting, minor edits.
--- a/src/bdf/bdfdrivr.c
+++ b/src/bdf/bdfdrivr.c
@@ -106,7 +106,7 @@
       FT_ULong  code;
 
 
-      if ( mid > max || mid < min )
+      if ( mid >= max || mid < min )
         mid = ( min + max ) >> 1;
 
       code = encodings[mid].enc;
@@ -152,7 +152,7 @@
       FT_ULong  code; /* same as BDF_encoding_el.enc */
 
 
-      if ( mid > max || mid < min )
+      if ( mid >= max || mid < min )
         mid = ( min + max ) >> 1;
 
       code = encodings[mid].enc;