bounds by logic but it crept through - this protects if it does.
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@70458
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
if (!cur) return EINA_FALSE;
if (!cur->node) return EINA_FALSE;
+ if (cur->pos < 0) return EINA_FALSE;
text = eina_ustrbuf_string_get(cur->node->unicode);
+ if ((cur->pos - 1) > eina_ustrbuf_length_get(cur->node->unicode)) return EINA_FALSE;
return ((text[cur->pos] == 0) && (!EINA_INLIST_GET(cur->node)->next)) ?
EINA_TRUE : EINA_FALSE;
}