From 62f95be91c7da6a32e13723e5f823588c039ca77 Mon Sep 17 00:00:00 2001 From: Jaeun Choi Date: Fri, 10 Apr 2015 18:31:58 +0900 Subject: [PATCH] elm_image: return EINA_FALSE if the data source is NULL in elm_image_memfile_set @fix --- legacy/elementary/src/lib/elm_image.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/legacy/elementary/src/lib/elm_image.c b/legacy/elementary/src/lib/elm_image.c index f04cd49..b0db368 100644 --- a/legacy/elementary/src/lib/elm_image.c +++ b/legacy/elementary/src/lib/elm_image.c @@ -887,6 +887,8 @@ _elm_image_file_set_do(Evas_Object *obj) EOLIAN static Eina_Bool _elm_image_memfile_set(Eo *obj, Elm_Image_Data *sd, const void *img, size_t size, const char *format, const char *key) { + EINA_SAFETY_ON_NULL_RETURN_VAL(img, EINA_FALSE); + _elm_image_file_set_do(obj); evas_object_image_memfile_set -- 2.7.4