projects
/
platform
/
upstream
/
enlightenment.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3474123
)
e_comp_wl_capture: added missing tbm_surface API return value check
66/217966/2
author
Gwanglim Lee
<gl77.lee@samsung.com>
Mon, 18 Nov 2019 05:44:20 +0000
(14:44 +0900)
committer
Gwanglim Lee
<gl77.lee@samsung.com>
Mon, 18 Nov 2019 05:40:37 +0000
(
05:40
+0000)
Change-Id: I055ad919cdc936c0f5b8e002179a5c21ad27dbcb
src/bin/e_comp_wl_capture.c
patch
|
blob
|
history
diff --git
a/src/bin/e_comp_wl_capture.c
b/src/bin/e_comp_wl_capture.c
index a8db50c768c58445ee91044530ba69f40424a3df..0ed6b895791a6f4e2ded7faabc7d535543ae9344 100644
(file)
--- a/
src/bin/e_comp_wl_capture.c
+++ b/
src/bin/e_comp_wl_capture.c
@@
-312,7
+312,11
@@
_e_capture_client_main_composite(Thread_Data *td, pixman_image_t *target_image)
src_ptr = info.planes[0].ptr;
w = tbm_surface_get_width(td->tbm_surface);
+ EINA_SAFETY_ON_FALSE_GOTO(w > 0, clean_up);
+
h = tbm_surface_get_height(td->tbm_surface);
+ EINA_SAFETY_ON_FALSE_GOTO(h > 0, clean_up);
+
src_img = pixman_image_create_bits(src_format, w, h, (uint32_t*)src_ptr, info.planes[0].stride);
EINA_SAFETY_ON_NULL_GOTO(src_img, clean_up);
}