* edje: fix invalid memory access by edje alias code.

Reported by Jonathan Atton "Watchwolf".


SVN revision: 56810
This commit is contained in:
Cedric BAIL 2011-02-08 14:11:47 +00:00
parent 7c1e687056
commit 80aae072ef
2 changed files with 11 additions and 1 deletions

View File

@ -12,3 +12,7 @@
2011-02-01 Tom Hacohen (TAsn)
* Added Mirroring support to edje objects.
2011-02-08 Cedric BAIL
* Fix invalid memory access by edje alias code.

View File

@ -4514,8 +4514,14 @@ _edje_real_part_recursive_get_helper(const Edje *ed, char **path)
const char *alias = NULL;
char *idx = NULL;
if (!path[0])
return NULL;
if (ed->collection && ed->collection->alias)
alias = eina_hash_find(ed->collection->alias, path[0]);
{
alias = eina_hash_find(ed->collection->alias, path[0]);
if (alias) alias = strdupa(alias);
}
if (!alias)
alias = path[0];