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:
8fa1d87
)
e_pixmap: Fix memory corruption in _e_pixmap_tzsurf_shm_cb_flusher_get()
61/141661/3
accepted/tizen/4.0/unified/20170816.011421
accepted/tizen/4.0/unified/20170816.015600
accepted/tizen/unified/20170803.075349
submit/tizen/20170802.073414
submit/tizen_4.0/20170811.094300
submit/tizen_4.0/20170814.115522
submit/tizen_4.0_unified/20170814.115522
author
Minsu Han
<minsu81.han@samsung.com>
Tue, 1 Aug 2017 08:31:28 +0000
(17:31 +0900)
committer
Sangjin Lee
<lsj119@samsung.com>
Tue, 1 Aug 2017 23:11:18 +0000
(08:11 +0900)
If ec->pixmap already has ec->pixmap->shm_flusher,
then we should unset user_data.
Change-Id: I42b02542e3140eb3b2abfe98455e1c95096a793b
Signed-off-by: Minsu Han <minsu81.han@samsung.com>
src/bin/e_pixmap.c
patch
|
blob
|
history
diff --git
a/src/bin/e_pixmap.c
b/src/bin/e_pixmap.c
index b5b4315699c232f4d0accd9d1538c8ba28e94766..24c3a3addff312c427194994928fc6f911824dbd 100644
(file)
--- a/
src/bin/e_pixmap.c
+++ b/
src/bin/e_pixmap.c
@@
-239,6
+239,9
@@
_e_pixmap_tzsurf_shm_cb_flusher_get(struct wl_client *client, struct wl_resource
return;
}
+ if (ec->pixmap->shm_flusher)
+ wl_resource_set_user_data(ec->pixmap->shm_flusher, NULL);
+
wl_resource_set_implementation(res, &_tzsurf_shm_flusher_iface, ec->pixmap,
_e_pixmap_tzsurf_shm_flusher_cb_res_destroy);