Evas font: Fixed wrong condition that may cause an invalid read when using OT.
authortasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 14 Feb 2011 15:02:52 +0000 (15:02 +0000)
committertasn <tasn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 14 Feb 2011 15:02:52 +0000 (15:02 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@57024 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/engines/common/evas_font_ot.c

index 6b4f91e..ad0d522 100644 (file)
@@ -49,7 +49,7 @@ evas_common_font_ot_cluster_size_get(const Evas_Text_Props *props, size_t char_i
      }
    else
      {
-        if (right_bound > (int) (props->text_offset + props->text_len))
+        if (right_bound >= (int) (props->text_offset + props->text_len))
           {
              items = props->text_offset + props->text_len - base_cluster;
           }