cedric pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=6866d256e8df02e99bd4a17030703372cdb2c8b7
commit 6866d256e8df02e99bd4a17030703372cdb2c8b7 Author: Oleksandr Shcherbina <o.shcherb...@samsung.com> Date: Mon Nov 23 08:15:41 2015 +0100 evas: fix possible accsess to NULL pointer in Evas.Canvas3d. Summary: @fix CID:1339784 Reviewers: raster, cedric Reviewed By: cedric Differential Revision: https://phab.enlightenment.org/D3348 Signed-off-by: Cedric BAIL <ced...@osg.samsung.com> --- src/lib/evas/canvas/evas_canvas3d_mesh.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/lib/evas/canvas/evas_canvas3d_mesh.c b/src/lib/evas/canvas/evas_canvas3d_mesh.c index f6d91f1..ead3da0 100644 --- a/src/lib/evas/canvas/evas_canvas3d_mesh.c +++ b/src/lib/evas/canvas/evas_canvas3d_mesh.c @@ -1132,6 +1132,13 @@ _evas_canvas3d_mesh_convex_hull_data_get(Eo *obj EINA_UNUSED, Evas_Canvas3D_Mesh int stride; Evas_Canvas3D_Mesh_Frame *f = evas_canvas3d_mesh_frame_find(pd, frame); + + if (!f) + { + ERR("Not existing mesh frame %d %s", __LINE__, __FILE__); + return; + } + if (f->vertices[EVAS_CANVAS3D_VERTEX_ATTRIB_POSITION].stride != 0) stride = f->vertices[EVAS_CANVAS3D_VERTEX_ATTRIB_POSITION].stride / sizeof(float); else --