evas_eet: Add Type Safety check
authorPankaj Mittal <m.pankaj@samsung.com>
Thu, 10 Dec 2015 07:26:56 +0000 (16:26 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Thu, 10 Dec 2015 07:26:56 +0000 (16:26 +0900)
commit1363cd757a8dcdc9adeaf47f781ad038446b2014
tree5cb4b8deb2c4627b57d170269f0fd2bbb244344c
parentd63cc52c584e0b3304699bd1822df18c0b446e2b
evas_eet: Add Type Safety check

Summary:
The Function _evas_canvas3d_eet_file_free(void) is referenced in  evas_model_load_file_eet()(file:evas_model_load_eet.c at line 122).
This call is  under condition
        if ((eet_file->mesh == NULL) || (eet_file->header == NULL)).
when  either eet_file->mesh or eet_file->header are NULL, dereference of the corresponding pointer in function "_evas_canvas3d_eet_file_free()"
will generate Segmentation Fault.

@fix

Reviewers: raster, Hermet, tasn, wonsik, spacegrapher, cedric, jpeg

Subscribers: singh.amitesh, sachin.dev, alok25, yashu21985, mvsovani, cedric

Differential Revision: https://phab.enlightenment.org/D3369
src/lib/evas/canvas/evas_canvas3d_eet.c
src/lib/evas/include/evas_common_private.h
src/lib/evas/include/evas_private.h
src/modules/evas/model_loaders/eet/evas_model_load_eet.c
src/modules/evas/model_savers/eet/evas_model_save_eet.c