forked from enlightenment/efl
Evas font: Fixed wrong condition that may cause an invalid read when using OT.
SVN revision: 57024
This commit is contained in:
parent
5991e80d35
commit
2a2f88aa2c
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue