From f379f43403fdc93fc74556c90fb3cb8af3977a40 Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Mon, 19 May 2003 12:45:28 +0000 Subject: [PATCH] * src/sfnt/ttcmap0.c (tt_cmap4_char_next): Select proper start value for `hi' to avoid infinite loop. --- ChangeLog | 5 +++++ src/sfnt/ttcmap0.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 465c8502f..7b9de15f0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-05-19 David Turner + + * src/sfnt/ttcmap0.c (tt_cmap4_char_next): Select proper start + value for `hi' to avoid infinite loop. + 2003-05-18 Yong Sun * src/raster/ftraster.c (Insert_Y_Turn): Fix overflow test. diff --git a/src/sfnt/ttcmap0.c b/src/sfnt/ttcmap0.c index b4583022f..90729aaa5 100644 --- 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;