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:
8c6f07d
)
e_comp_wl: add NULL-check for ec->comp_data
17/119617/2
author
Utkarsh Ray
<utkarsh.ray@samsung.com>
Fri, 17 Mar 2017 14:18:29 +0000
(19:48 +0530)
committer
Doyoun Kang
<doyoun.kang@samsung.com>
Fri, 24 Mar 2017 04:37:21 +0000
(21:37 -0700)
Prevent invalid memory access
Change-Id: I57696f0bb20347a17ef86dae6d3d08bb75a25039
Signed-off-by: Utkarsh Ray <utkarsh.ray@samsung.com>
src/bin/e_comp_wl.c
patch
|
blob
|
history
diff --git
a/src/bin/e_comp_wl.c
b/src/bin/e_comp_wl.c
index
110d35f
..
1fb6eea
100644
(file)
--- a/
src/bin/e_comp_wl.c
+++ b/
src/bin/e_comp_wl.c
@@
-1882,6
+1882,7
@@
_e_comp_wl_evas_cb_ping(void *data, Evas_Object *obj EINA_UNUSED, void *event EI
E_Client *ec;
if (!(ec = data)) return;
+ if (!(ec->comp_data)) return;
if (!(ec->comp_data->shell.ping)) return;
if (!(ec->comp_data->shell.surface)) return;