From: tasn Date: Sun, 29 May 2011 21:11:58 +0000 (+0000) Subject: Evas textblock: Possible workaround for the infinite loop morlenxus is having. X-Git-Tag: 2.0_alpha~240^2~549 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4e71483f52e74623d6df9bc1a015384b64500c59;p=framework%2Fuifw%2Fevas.git Evas textblock: Possible workaround for the infinite loop morlenxus is having. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@59791 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/canvas/evas_object_textblock.c b/src/lib/canvas/evas_object_textblock.c index bd015fa..3fbd717 100644 --- a/src/lib/canvas/evas_object_textblock.c +++ b/src/lib/canvas/evas_object_textblock.c @@ -2842,6 +2842,13 @@ skip: script_len = tmp_cut; } + /* FIXME: This is a possible fix for an infinite loops that happens + * if script_len <= 0. Should find the source of the issue, + * i.e why (off - (str - tbase)) is ever < 0. I can't reproduce the + * issue so I can't really do anything about it. */ + if (script_len <= 0) + break; + script = evas_common_language_script_type_get(str, script_len);