shithub: freetype+ttf2subf

Download patch

ref: f379f43403fdc93fc74556c90fb3cb8af3977a40
parent: 51daa4feb18fce52a3c5d40bd6c9969203ec6b28
author: Werner Lemberg <[email protected]>
date: Mon May 19 08:45:28 EDT 2003

* src/sfnt/ttcmap0.c (tt_cmap4_char_next): Select proper start
value for `hi' to avoid infinite loop.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-05-19  David Turner  <[email protected]>
+
+	* src/sfnt/ttcmap0.c (tt_cmap4_char_next): Select proper start
+	value for `hi' to avoid infinite loop.
+
 2003-05-18  Yong Sun  <[email protected]>
 
 	* src/raster/ftraster.c (Insert_Y_Turn): Fix overflow test.
--- a/src/sfnt/ttcmap0.c
+++ b/src/sfnt/ttcmap0.c
@@ -909,7 +909,7 @@
 
       /* we begin by finding the segment which end is
          closer to our code point */
-      hi = 0;
+      hi = max + 1;
       while ( min < max )
       {
         mid = ( min + max ) >> 1;