hermet pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=bab3db204e949cc072fdc6a1ccd8b2bbb2740232

commit bab3db204e949cc072fdc6a1ccd8b2bbb2740232
Author: ChunEon Park <her...@hermet.pe.kr>
Date:   Wed May 21 13:24:32 2014 +0900

    image - null checking.
    
    If the rotated image exceeds image maximum size, the data would be invalid.
---
 src/lib/elm_image.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/lib/elm_image.c b/src/lib/elm_image.c
index 306c21a..ac90ce8 100644
--- a/src/lib/elm_image.c
+++ b/src/lib/elm_image.c
@@ -1106,6 +1106,11 @@ _elm_image_orient_set(Eo *obj, Elm_Image_Data *sd, 
Elm_Image_Orient orient)
 
    evas_object_image_size_set(sd->img, iw, ih);
    data = evas_object_image_data_get(sd->img, EINA_TRUE);
+   if (!data)
+     {
+        free(data2);
+        return;
+     }
 
    switch (orient)
      {

-- 


Reply via email to