forked from enlightenment/efl
* edje: fix invalid memory access by edje alias code.
Reported by Jonathan Atton "Watchwolf". SVN revision: 56810
This commit is contained in:
parent
7c1e687056
commit
80aae072ef
|
@ -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.
|
||||
|
|
|
@ -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]);
|
||||
if (alias) alias = strdupa(alias);
|
||||
}
|
||||
|
||||
if (!alias)
|
||||
alias = path[0];
|
||||
|
|
Loading…
Reference in New Issue