Evas font: Fixed wrong condition that may cause an invalid read when using OT.
authorTom Hacohen <tom@stosb.com>
Mon, 14 Feb 2011 15:02:52 +0000 (15:02 +0000)
committerTom Hacohen <tom@stosb.com>
Mon, 14 Feb 2011 15:02:52 +0000 (15:02 +0000)
SVN revision: 57024

legacy/evas/src/lib/engines/common/evas_font_ot.c

index 6b4f91e9f25a0a54927795b19087f4729331f8b3..ad0d522a002ce463e98e6039ccb44351b7307ae1 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;
           }