e_policy: Fix use-after-free 15/318115/1
authorSeunghun Lee <shiin@samsung.com>
Tue, 24 Sep 2024 07:11:12 +0000 (16:11 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Tue, 24 Sep 2024 23:43:05 +0000 (08:43 +0900)
commitef64a37759959fad4a2001bbc38976683b2029bb
tree66dc013e5291d3337960217cd86f0541f8c3bc94
parent8fdbd66b20996c871e7ba1f8bb5f3f6dcd001a0c
e_policy: Fix use-after-free

Removing a listener from the buffer_clear signal of E_Pixmap after
E_Pixmap has been destroyed results in use-after-free issue.

To resolve this problem, E_Pixmap will emit the destroy signal just
before it's destroyed. The implementation using E_Pixmap should remove
all listeners from the E_Pixmap when destroy signal is emitted.

Change-Id: I38f9fd86fd4815f156cc74bfc7934c79a55fbc6f
src/bin/core/e_pixmap.c
src/bin/core/e_pixmap_intern.h
src/bin/windowmgr/e_policy.c
src/bin/windowmgr/e_policy_intern.h