public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jan Grulich <jgrulich@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/qt6-qtbase] epel9: Fix crash in QWaylandShmBackingStore::scroll()
Date: Thu, 08 Oct 2026 17:15:14 GMT	[thread overview]
Message-ID: <179147971489.1.7850029620582033409.rpms-qt6-qtbase-082bad248499@fedoraproject.org> (raw)

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();

                 reply	other threads:[~2026-10-08 17:15 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179147971489.1.7850029620582033409.rpms-qt6-qtbase-082bad248499@fedoraproject.org \
    --to=jgrulich@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox