summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChunEon Park <hermet@hermet.pe.kr>2014-05-21 13:24:32 +0900
committerChunEon Park <hermet@hermet.pe.kr>2014-05-21 13:24:32 +0900
commitbab3db204e949cc072fdc6a1ccd8b2bbb2740232 (patch)
tree7ff7d68892baf97d1a6bdadf92e5add561263076
parentaa9998cf3ef98b10631d1eedfa37874195c507bb (diff)
image - null checking.
If the rotated image exceeds image maximum size, the data would be invalid.
-rw-r--r--src/lib/elm_image.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/elm_image.c b/src/lib/elm_image.c
index 306c21a6d..ac90ce880 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)
1106 1106
1107 evas_object_image_size_set(sd->img, iw, ih); 1107 evas_object_image_size_set(sd->img, iw, ih);
1108 data = evas_object_image_data_get(sd->img, EINA_TRUE); 1108 data = evas_object_image_data_get(sd->img, EINA_TRUE);
1109 if (!data)
1110 {
1111 free(data2);
1112 return;
1113 }
1109 1114
1110 switch (orient) 1115 switch (orient)
1111 { 1116 {