Dylan Aïssi pushed to branch upstream-experimental at X Strike Force / wayland / weston
Commits: e7d9355d by Erkai Ji at 2026-07-08T17:46:41+08:00 backend-drm: Initialize failed in drm_pending_state_apply_sync The local variable failed is declared without an initializer. If all outputs in the pending state list apply successfully, the variable is never assigned, so the subsequent check on failed reads an uninitialized value, leading to undefined behavior. Initialize it to false, consistent with drm_pending_state_apply() which already does so. Signed-off-by: Erkai Ji <[email protected]> - - - - - 467adb77 by Erkai Ji at 2026-07-08T17:46:41+08:00 frontend: Fix memory leak in drm_process_layoutput When all outputs in the layout list have been destroyed and lo->add.n is zero, the strdup'd name is never freed before returning. Similarly, the early return inside the while loop does not free name either. Add the missing free calls in both return paths. Signed-off-by: Erkai Ji <[email protected]> - - - - - 5c870ef1 by Erkai Ji at 2026-07-08T17:46:41+08:00 gl-renderer: Fix desc string leak in gl_shader_scope_new_subscription The desc string returned by create_shader_description_string is allocated via asprintf but never freed after logging, causing a memory leak on every iteration of the shader list traversal. Free the desc string after use to prevent the leak. Signed-off-by: Erkai Ji <[email protected]> - - - - - d1882b0a by Marius Vlad at 2026-07-14T10:34:50+03:00 build: bump to version 16.0.0 for the official release Signed-off-by: Marius Vlad <[email protected]> - - - - - ca38a48e by Dylan Aïssi at 2026-07-15T07:26:28+02:00 New upstream version 16.0.0 - - - - - 4 changed files: - frontend/main.c - libweston/backend-drm/kms.c - libweston/renderer-gl/gl-shaders.c - meson.build Changes: ===================================== frontend/main.c ===================================== @@ -3636,6 +3636,7 @@ drm_process_layoutput(struct wet_compositor *wet, struct wet_layoutput *lo) while (lo->add.n > 0) { if (!wl_list_empty(&lo->output_list)) { weston_log("Error: independent-CRTC clone mode is not implemented.\n"); + free(name); return -1; } @@ -3659,6 +3660,7 @@ drm_process_layoutput(struct wet_compositor *wet, struct wet_layoutput *lo) } } + free(name); return 0; } ===================================== libweston/backend-drm/kms.c ===================================== @@ -2355,7 +2355,7 @@ drm_pending_state_apply_sync(struct drm_pending_state *pending_state) struct drm_device *device = pending_state->device; struct drm_output_state *output_state, *tmp; struct drm_crtc *crtc; - bool failed; + bool failed = false; if (device->atomic_modeset) return drm_pending_state_apply_atomic(pending_state, ===================================== libweston/renderer-gl/gl-shaders.c ===================================== @@ -641,6 +641,7 @@ gl_shader_scope_new_subscription(struct weston_log_subscription *subs, "%6u: (%.1f) %s\n", shader->program, msecs / 1000.0, desc); + free(desc); } weston_log_subscription_printf(subs, "Total: %d programs.\n", count); } ===================================== meson.build ===================================== @@ -1,6 +1,6 @@ project('weston', ['c', 'cpp'], - version: '15.0.93', + version: '16.0.0', default_options: [ 'warning_level=3', 'c_std=gnu11', View it on GitLab: https://salsa.debian.org/xorg-team/wayland/weston/-/compare/d853611cb8dd3f140c5243ba67590ee5881fb998...ca38a48e0e0aa93931cbaad3ccaba3c829e76f5c -- View it on GitLab: https://salsa.debian.org/xorg-team/wayland/weston/-/compare/d853611cb8dd3f140c5243ba67590ee5881fb998...ca38a48e0e0aa93931cbaad3ccaba3c829e76f5c You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help

