diff options
author | Subhransu Mohanty <sub.mohanty@samsung.com> | 2015-04-03 16:38:14 +0200 |
---|---|---|
committer | Cedric BAIL <cedric@osg.samsung.com> | 2015-04-03 16:38:14 +0200 |
commit | 5c31036249ed5c21f249387d785fb85d97b5926e (patch) | |
tree | c8927742fa4e463a487f51b42b3ff6234492ca5b | |
parent | 4ad8b3ab521f8ea69e34211c818f276740889e5b (diff) | |
download | efl-5c31036249ed5c21f249387d785fb85d97b5926e.tar.gz |
evas/canvas : bail out in case of empty or null dash.
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
-rw-r--r-- | src/lib/evas/canvas/evas_vg_shape.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/evas/canvas/evas_vg_shape.c b/src/lib/evas/canvas/evas_vg_shape.c index 7b7ec01f06..e67c3b5675 100644 --- a/src/lib/evas/canvas/evas_vg_shape.c +++ b/src/lib/evas/canvas/evas_vg_shape.c @@ -199,6 +199,9 @@ _efl_vg_shape_efl_gfx_shape_stroke_dash_set(Eo *obj EINA_UNUSED, pd->stroke.dash = NULL; pd->stroke.dash_count = 0; + // check for null or empty dash + if (!dash || !length) return; + pd->stroke.dash = malloc(sizeof (Efl_Gfx_Dash) * length); if (!pd->stroke.dash) return ; |