e_hwc_windows: fix use after free of e_hwc_window 81/299681/1
authorChangyeon Lee <cyeon.lee@samsung.com>
Fri, 6 Oct 2023 07:57:01 +0000 (16:57 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Fri, 6 Oct 2023 09:05:35 +0000 (18:05 +0900)
commit218d3232642b138cba2a95e7c697a7c84ba11ec0
tree9db11f7e1b39e3a5110920d1b851a1a104617a30
parent8c31756b381a8c079d0971e93c10bdff24ceda1c
e_hwc_windows: fix use after free of e_hwc_window

if queue buffer is released when hwc_window of client fetch buffer,
hwc_window can be freed while hwc_windows list is iterated
in _e_hwc_windows_changes_update.
it ouccur that hwc_window is used after freed.
for fixing it, we reference e_hwc_widnow before hwc_windows list is iterated
and it makes prevent hwc_windows is freed in e_hwc_window_buffer_fetch.

Change-Id: I90d656bc6380b4fe69d5a75f88a7dfe55c21cc8d
src/bin/e_hwc_windows.c