public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/qt6-qtbase] epel9: Fix crash in QWaylandShmBackingStore::scroll()
@ 2026-10-08 17:15 Jan Grulich
  0 siblings, 0 replies; only message in thread
From: Jan Grulich @ 2026-10-08 17:15 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/qt6-qtbase
Branch : epel9
Commit : 082bad2484993f53851b22458853fb7d6aff554e
Author : Jan Grulich <jgrulich@redhat.com>
Date   : 2025-12-22T16:15:39+01:00
Stats  : +44/-2 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/qt6-qtbase/c/082bad2484993f53851b22458853fb7d6aff554e?branch=epel9

Log:
Fix crash in QWaylandShmBackingStore::scroll()

---
diff --git a/qt6-qtbase.spec b/qt6-qtbase.spec
index 70926ab..382a945 100644
--- a/qt6-qtbase.spec
+++ b/qt6-qtbase.spec
@@ -48,7 +48,7 @@ BuildRequires: pkgconfig(libsystemd)
 Name:    qt6-qtbase
 Summary: Qt6 - QtBase components
 Version: 6.10.1
-Release: 2%{?dist}
+Release: 3%{?dist}
 
 License: LGPL-3.0-only OR GPL-3.0-only WITH Qt-GPL-exception-1.0
 Url:     http://qt-project.org/
@@ -102,7 +102,7 @@ Patch100: qtbase-wayland-convey-preference-for-server-side-decorations.patch
 Patch101: qtbase-wayland-compress-high-frequency-mouse-events.patch
 Patch102: qtbase-wayland-optimize-scroll-operations.patch
 Patch103: qtbase-wayland-enable-event-compression-and-fix-scroll-end-event.patch
-
+Patch104: qtbase-wayland-fix-crash-in-qwaylandshmbackingstore-scroll.patch
 
 # Do not check any files in %%{_qt6_plugindir}/platformthemes/ for requires.
 # Those themes are there for platform integration. If the required libraries are
@@ -967,6 +967,9 @@ make check -k ||:
 %{_qt6_datadir}/wayland/protocols/
 
 %changelog
+* Mon Dec 22 2025 Jan Grulich <jgrulich@redhat.com> - 6.10.1-3
+- Fix crash in QWaylandShmBackingStore::scroll()
+
 * Mon Dec 08 2025 Jan Grulich <jgrulich@redhat.com> - 6.10.1-2
 - Re-add wayland fixes for mouse scrolling
 

diff --git a/qtbase-wayland-fix-crash-in-qwaylandshmbackingstore-scroll.patch b/qtbase-wayland-fix-crash-in-qwaylandshmbackingstore-scroll.patch
new file mode 100644
index 0000000..7881aba
--- /dev/null
+++ b/qtbase-wayland-fix-crash-in-qwaylandshmbackingstore-scroll.patch
@@ -0,0 +1,39 @@
+From c93008e4d06abb0072e0e5e57d84a4ae182ecfc0 Mon Sep 17 00:00:00 2001
+From: Błażej Szczygieł <mumei6102@gmail.com>
+Date: Tue, 21 Oct 2025 19:49:17 +0200
+Subject: [PATCH] wayland: Fix crash in QWaylandShmBackingStore::scroll()
+
+Fixes a crash when monitor is unplugged while scrolling.
+
+recreateBackBufferIfNeeded() calls getBuffer() which may set
+mFrontBuffer to nullptr.
+
+Amends: 6f25f703fd37a900c139e14a33a4639502bfeae7
+
+Task-number: QTBUG-139231
+Change-Id: Ia5bedce2a3f6580c722f73446de81a26d40ea2f4
+Reviewed-by: David Edmundson <davidedmundson@kde.org>
+---
+
+diff --git a/src/plugins/platforms/wayland/qwaylandshmbackingstore.cpp b/src/plugins/platforms/wayland/qwaylandshmbackingstore.cpp
+index b853db2..fa70b53 100644
+--- a/src/plugins/platforms/wayland/qwaylandshmbackingstore.cpp
++++ b/src/plugins/platforms/wayland/qwaylandshmbackingstore.cpp
+@@ -229,7 +229,7 @@
+ // Inspired by QCALayerBackingStore.
+ bool QWaylandShmBackingStore::scroll(const QRegion &region, int dx, int dy)
+ {
+-    if (Q_UNLIKELY(!mBackBuffer || !mFrontBuffer))
++    if (Q_UNLIKELY(!mBackBuffer))
+         return false;
+ 
+     const qreal devicePixelRatio = waylandWindow()->scale();
+@@ -241,6 +241,8 @@
+         return false;
+ 
+     recreateBackBufferIfNeeded();
++    if (!mFrontBuffer)
++        return false;
+ 
+     const QPoint scrollDelta(dx, dy);
+     const QMargins margins = windowDecorationMargins();

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-08 17:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-08 17:15 [rpms/qt6-qtbase] epel9: Fix crash in QWaylandShmBackingStore::scroll() Jan Grulich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox