Reported by Jonathan Atton "Watchwolf".
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@56810
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
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.
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];