From: tasn Date: Mon, 30 May 2011 13:59:18 +0000 (+0000) Subject: Evas font-engine: font_run_end_get. Fix possible segfault. X-Git-Tag: submit/trunk/20120815.174732~1411 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=24d113b8f8ee2d3275fabd422825516c6645ae3e;p=profile%2Fivi%2Fevas.git Evas font-engine: font_run_end_get. Fix possible segfault. Patch by Cedric. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@59817 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/engines/common/evas_font_query.c b/src/lib/engines/common/evas_font_query.c index d6760a7..d604e8a 100644 --- a/src/lib/engines/common/evas_font_query.c +++ b/src/lib/engines/common/evas_font_query.c @@ -102,8 +102,11 @@ evas_common_font_query_run_font_end_get(RGBA_Font *fn, RGBA_Font_Int **script_fi for ( ; itr < run_end ; itr++) { if (evas_common_get_char_index(fi, *itr) || - evas_common_font_glyph_search(fn, &fi, *itr)) - break; + evas_common_font_glyph_search(fn, &tmp_fi, *itr)) + { + fi = tmp_fi; + break; + } } /* If we found a renderable character and the found font