e_comp_wl: fix crash issues due to invalid resource access 98/310898/1 accepted/tizen/unified/20240510.095759 accepted/tizen/unified/toolchain/20240515.061132 accepted/tizen/unified/x/20240513.060314
authorJihoon Kim <jihoon48.kim@samsung.com>
Thu, 9 May 2024 08:22:49 +0000 (17:22 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Thu, 9 May 2024 08:44:35 +0000 (17:44 +0900)
Change-Id: I9c1eef708091c704804141cb414b91f0e3e9524d
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
src/bin/e_comp_wl.c
src/bin/e_comp_wl_input.c

index 08edc574c53af2cf74b7a767e05851cea47fc59e..73161ef60dde8f0176ff04293ab0e48665d0d8a5 100644 (file)
@@ -2055,7 +2055,7 @@ _e_comp_wl_evas_cb_focus_in_timer(E_Client *ec)
 
    ec->comp_data->on_focus_timer = NULL;
 
-   e_input_thread_safe_call(_e_comp_wl_input_thread_send_keys, NULL, 0);
+   _e_comp_wl_input_thread_send_keys(NULL);
 
    return EINA_FALSE;
 }
@@ -2116,7 +2116,7 @@ e_comp_wl_feed_focus_in(E_Client *ec)
    if (!surface) return;
 
    INF("send focus in request to input thread. surface(%p)\n", surface);
-   e_input_thread_safe_call(_e_comp_wl_input_thread_focus_in, (void *)&surface, sizeof(struct wl_resource *));
+   _e_comp_wl_input_thread_focus_in(&surface);
 
    ec->comp_data->on_focus_timer =
       ecore_timer_add(((e_config->xkb.delay_held_key_input_to_focus)/1000.0),
@@ -2192,7 +2192,7 @@ _e_comp_wl_evas_cb_focus_out(void *data, Evas *evas EINA_UNUSED, Evas_Object *ob
 
    struct wl_resource *surface = e_comp_wl_client_surface_get(ec);
    INF("send focus out request to input thread. surface(%p)\n", surface);
-   e_input_thread_safe_call(_e_comp_wl_input_thread_focus_out, (void *)&surface, sizeof(struct wl_resource *));
+   _e_comp_wl_input_thread_focus_out(&surface);
 }
 
 static void
index 637e19fbe0eb7d6e51c5cc7e9fd4e2ff88272e2a..1d84541dfcaf2eb19bdb032da56151c903929dad 100644 (file)
@@ -356,7 +356,7 @@ static void
 _e_comp_wl_input_cb_keyboard_unbind(struct wl_resource *resource)
 {
    INF("[keyboard unbind] resource(%p)\n", resource);
-   e_input_thread_safe_call(_e_comp_wl_input_thread_cb_keyboard_unbind, &resource, sizeof(struct wl_resource *));
+   _e_comp_wl_input_thread_cb_keyboard_unbind(&resource);
 }
 
 void
@@ -463,7 +463,7 @@ _e_comp_wl_input_cb_keyboard_get(struct wl_client *client, struct wl_resource *r
    keyboard_get_data.resource = res;
    keyboard_get_data.client = client;
 
-   e_input_thread_safe_call(_e_comp_wl_input_thread_cb_keyboard_get, &keyboard_get_data, sizeof(E_Input_Thread_Request_Keyboard_Get_Data));
+   _e_comp_wl_input_thread_cb_keyboard_get(&keyboard_get_data);
 }
 
 static void