From 35bc3f933fe10290fe1a2b4d640f9210fdf8f976 Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Fri, 9 Feb 2024 18:36:52 +0000 Subject: [PATCH] elm - win - fix xsd icon hint set with junk stack data and crash fixes a crash accessing junk on stack data that was unset for netwm icon hints. @fix --- src/lib/elementary/efl_ui_win.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c index 5ce1967f30..067791e259 100644 --- a/src/lib/elementary/efl_ui_win.c +++ b/src/lib/elementary/efl_ui_win.c @@ -3563,13 +3563,13 @@ _elm_win_xwin_update(Efl_Ui_Win_Data *sd) if (image) { - int w = 0, h = 0, stride, x, y; + int w = 0, h = 0, stride = 0, x, y; Eina_Bool unmap = EINA_FALSE; - Eina_Rw_Slice sl = {}; + Eina_Rw_Slice sl = { 0 }; if (efl_isa(image, EFL_CANVAS_IMAGE_CLASS)) { - Eina_Rect rect = {}; + Eina_Rect rect = { 0 }; unmap = EINA_TRUE; rect.size = efl_gfx_buffer_size_get(image); @@ -3578,12 +3578,14 @@ _elm_win_xwin_update(Efl_Ui_Win_Data *sd) &stride); w = rect.w; h = rect.h; +// printf("a %ix%i %p\n", w, h, sl.mem); } else { evas_object_image_size_get(image, &w, &h); stride = evas_object_image_stride_get(image); sl.mem = evas_object_image_data_get(image, EINA_FALSE); +// printf("b %ix%i %p\n", w, h, sl.mem); } if (sl.mem)