I just ported this to trunk/efl.
http://trac.enlightenment.org/e/changeset/82150
Thanks.

Daniel Juyung Seo (SeoZ)

On Fri, Jan 4, 2013 at 3:17 AM, Enlightenment SVN <
no-re...@enlightenment.org> wrote:

> Log:
> Edje: invalidate double named group
>
>   What happens if a group has 2 name statements("double named")?
>   edje will fail to free the groups cache while shuting down due
>   the collection directory entry hash having two entries with
>   different names but pointing to the same object - the second try
>   to free the part mem pool will fail - since it was freed before -
>   and issue an abort.
>
>
> Author:       dorileo
> Date:         2013-01-03 10:17:42 -0800 (Thu, 03 Jan 2013)
> New Revision: 82093
> Trac:         http://trac.enlightenment.org/e/changeset/82093
>
> Modified:
>   trunk/edje/src/bin/edje_cc_handlers.c
>
> Modified: trunk/edje/src/bin/edje_cc_handlers.c
> ===================================================================
> --- trunk/edje/src/bin/edje_cc_handlers.c       2013-01-03 18:16:16 UTC
> (rev 82092)
> +++ trunk/edje/src/bin/edje_cc_handlers.c       2013-01-03 18:17:42 UTC
> (rev 82093)
> @@ -2464,6 +2464,9 @@
>
>     current_pc = eina_list_data_get(eina_list_last(edje_collections));
>
> +   if (current_de->entry)
> +     goto double_named_group;
> +
>     current_de->entry = parse_str(0);
>     current_pc->part = current_de->entry;
>
> @@ -2486,6 +2489,10 @@
>            break;
>         }
>
> +double_named_group:
> +   ERR("Invalid group, only a single name statement is valid for group,
> use "
> +       "alias instead.");
> +   exit(-1);
>  }
>
>  typedef struct _Edje_List_Foreach_Data Edje_List_Foreach_Data;
>
>
>
> ------------------------------------------------------------------------------
> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
> MVPs and experts. ON SALE this month only -- learn more at:
> http://p.sf.net/sfu/learnmore_122712
> _______________________________________________
> enlightenment-svn mailing list
> enlightenment-...@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-svn
>
------------------------------------------------------------------------------
Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and
much more. Get web development skills now with LearnDevNow -
350+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122812
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to