Dylan Aïssi pushed to branch debian-unstable at X Strike Force / wayland / 
weston


Commits:
c6238288 by Simon McVittie at 2024-09-14T19:12:44+01:00
Add proposed patch fixing a crash while running the gtk4 test suite

Closes: #1081515
Thanks: Jan Alexander Steffens (heftig)

- - - - -
02dbf5d7 by Simon McVittie at 2024-09-14T19:13:32+01:00
Update changelog

- - - - -


3 changed files:

- debian/changelog
- + debian/patches/libweston-noop-renderer-Check-shm_buffer-for-NULL.patch
- debian/patches/series


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,12 @@
+weston (14.0.0-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload
+  * d/p/libweston-noop-renderer-Check-shm_buffer-for-NULL.patch:
+    Add proposed patch fixing a crash while running the gtk4 test suite.
+    Thanks to Jan Alexander Steffens (heftig) (Closes: #1081515)
+
+ -- Simon McVittie <s...@debian.org>  Sat, 14 Sep 2024 19:12:51 +0100
+
 weston (14.0.0-1) unstable; urgency=medium
 
   * Upload to unstable


=====================================
debian/patches/libweston-noop-renderer-Check-shm_buffer-for-NULL.patch
=====================================
@@ -0,0 +1,31 @@
+From: "Jan Alexander Steffens (heftig)" <hef...@archlinux.org>
+Date: Sat, 14 Sep 2024 06:35:09 +0200
+Subject: libweston/noop-renderer: Check shm_buffer for NULL
+
+Copy the check from the pixman renderer.
+
+Bug: https://gitlab.freedesktop.org/wayland/weston/-/issues/953
+Signed-off-by: Jan Alexander Steffens (heftig) <hef...@archlinux.org>
+Forwarded: https://gitlab.freedesktop.org/wayland/weston/-/merge_requests/1614
+Bug-Debian: https://bugs.debian.org/1081515
+---
+ libweston/noop-renderer.c | 6 ++++++
+ 1 file changed, 6 insertions(+)
+
+diff --git a/libweston/noop-renderer.c b/libweston/noop-renderer.c
+index 06b4aeb..58d0b66 100644
+--- a/libweston/noop-renderer.c
++++ b/libweston/noop-renderer.c
+@@ -94,6 +94,12 @@ noop_renderer_attach(struct weston_paint_node *pnode)
+       }
+ 
+       shm_buffer = buffer->shm_buffer;
++      /* This can happen if a SHM wl_buffer gets destroyed before we attach,
++       * because wayland-server just nukes the wl_shm_buffer from underneath
++       * us. */
++      if (!shm_buffer)
++              return;
++
+       data = wl_shm_buffer_get_data(shm_buffer);
+       stride = buffer->stride;
+       height = buffer->height;


=====================================
debian/patches/series
=====================================
@@ -1 +1,2 @@
 Skip_xwayland_test.patch
+libweston-noop-renderer-Check-shm_buffer-for-NULL.patch



View it on GitLab: 
https://salsa.debian.org/xorg-team/wayland/weston/-/compare/a08addb17c6e0b4f897247aef43520d4001be97c...02dbf5d7c234cb011e47625ac9c4c13d5aeb0fff

-- 
View it on GitLab: 
https://salsa.debian.org/xorg-team/wayland/weston/-/compare/a08addb17c6e0b4f897247aef43520d4001be97c...02dbf5d7c234cb011e47625ac9c4c13d5aeb0fff
You're receiving this email because of your account on salsa.debian.org.


Reply via email to