Enlightenment CVS committal
Author : barbieri
Project : e17
Module : libs/edje
Dir : e17/libs/edje/src/lib
Modified Files:
edje_calc.c
Log Message:
Fix segfault with part_recalc when no image_dir was specified.
This avoid crashes with buggy edje files: if you forget to specify
type: RECT and don't provide any "images.image" in edje, it crashes.
===================================================================
RCS file: /cvs/e/e17/libs/edje/src/lib/edje_calc.c,v
retrieving revision 1.108
retrieving revision 1.109
diff -u -3 -r1.108 -r1.109
--- edje_calc.c 8 Sep 2007 18:31:56 -0000 1.108
+++ edje_calc.c 12 Sep 2007 15:12:07 -0000 1.109
@@ -1259,7 +1259,8 @@
{
Edje_Image_Directory_Entry *ie;
- ie = evas_list_nth(ed->file->image_dir->entries, (-image_id)
- 1);
+ if (!ed->file->image_dir) ie = NULL;
+ else ie = evas_list_nth(ed->file->image_dir->entries,
(-image_id) - 1);
if ((ie) &&
(ie->source_type == EDJE_IMAGE_SOURCE_TYPE_EXTERNAL) &&
(ie->entry))
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs