projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec28b13
)
evas: check that we don't use a NULL pointer on wrong frame number.
author
Cedric BAIL
<c.bail@partner.samsung.com>
Tue, 3 Jun 2014 23:18:51 +0000
(
01:18
+0200)
committer
Cedric BAIL
<c.bail@partner.samsung.com>
Tue, 3 Jun 2014 23:18:51 +0000
(
01:18
+0200)
CID 1220083
src/lib/evas/canvas/evas_3d_mesh.c
patch
|
blob
|
history
diff --git
a/src/lib/evas/canvas/evas_3d_mesh.c
b/src/lib/evas/canvas/evas_3d_mesh.c
index
3ba8ee1
..
c09f490
100644
(file)
--- a/
src/lib/evas/canvas/evas_3d_mesh.c
+++ b/
src/lib/evas/canvas/evas_3d_mesh.c
@@
-65,6
+65,12
@@
evas_3d_mesh_aabb_add_to_frame(Evas_3D_Mesh_Data *pd, int frame, int stride)
float *minmaxdata = NULL;
Evas_Box3 box3;
+ if (!curframe)
+ {
+ ERR("Invalid frame %i.", frame);
+ return EINA_FALSE;
+ }
+
step = curframe->vertices[EVAS_3D_VERTEX_POSITION].element_count;
size = curframe->vertices[EVAS_3D_VERTEX_POSITION].size;
minmaxdata = (float *)curframe->vertices[EVAS_3D_VERTEX_POSITION].data;