summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/evas_canvas3d_mesh.c
diff options
context:
space:
mode:
authorOleksandr Shcherbina <o.shcherbina@samsung.com>2015-11-23 08:15:41 +0100
committerCedric BAIL <cedric@osg.samsung.com>2015-11-23 08:16:12 +0100
commit6866d256e8df02e99bd4a17030703372cdb2c8b7 (patch)
treef2e3144b0896a64f86ba633d98806c2612997f65 /src/lib/evas/canvas/evas_canvas3d_mesh.c
parent5d4f3b22c4212b755a881098bf28e5ee02a1a124 (diff)
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 <cedric@osg.samsung.com>
Diffstat (limited to 'src/lib/evas/canvas/evas_canvas3d_mesh.c')
-rw-r--r--src/lib/evas/canvas/evas_canvas3d_mesh.c7
1 files changed, 7 insertions, 0 deletions
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
1132 int stride; 1132 int stride;
1133 1133
1134 Evas_Canvas3D_Mesh_Frame *f = evas_canvas3d_mesh_frame_find(pd, frame); 1134 Evas_Canvas3D_Mesh_Frame *f = evas_canvas3d_mesh_frame_find(pd, frame);
1135
1136 if (!f)
1137 {
1138 ERR("Not existing mesh frame %d %s", __LINE__, __FILE__);
1139 return;
1140 }
1141
1135 if (f->vertices[EVAS_CANVAS3D_VERTEX_ATTRIB_POSITION].stride != 0) 1142 if (f->vertices[EVAS_CANVAS3D_VERTEX_ATTRIB_POSITION].stride != 0)
1136 stride = f->vertices[EVAS_CANVAS3D_VERTEX_ATTRIB_POSITION].stride / sizeof(float); 1143 stride = f->vertices[EVAS_CANVAS3D_VERTEX_ATTRIB_POSITION].stride / sizeof(float);
1137 else 1144 else