From 099c6f405a3b988f41d83c0ffb34820e33562a9f Mon Sep 17 00:00:00 2001 From: tasn Date: Sun, 29 May 2011 21:11:58 +0000 Subject: [PATCH] Evas textblock: Possible workaround for the infinite loop morlenxus is having. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@59791 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/canvas/evas_object_textblock.c | 7 +++++++ 1 file changed, 7 insertions(+) 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); -- 2.7.4