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:
e768af8
)
image - null checking.
author
ChunEon Park
<hermet@hermet.pe.kr>
Wed, 21 May 2014 04:24:32 +0000
(13:24 +0900)
committer
ChunEon Park
<hermet@hermet.pe.kr>
Wed, 21 May 2014 04:24:32 +0000
(13:24 +0900)
If the rotated image exceeds image maximum size, the data would be invalid.
legacy/elementary/src/lib/elm_image.c
patch
|
blob
|
history
diff --git
a/legacy/elementary/src/lib/elm_image.c
b/legacy/elementary/src/lib/elm_image.c
index
306c21a
..
ac90ce8
100644
(file)
--- a/
legacy/elementary/src/lib/elm_image.c
+++ b/
legacy/elementary/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)
{