public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/qt6-qtbase] rawhide: Upstream backport:
@ 2026-10-01 14:53 Jan Grulich
0 siblings, 0 replies; 2+ messages in thread
From: Jan Grulich @ 2026-10-01 14:53 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/qt6-qtbase
Branch : rawhide
Commit : c3dd3fe417d776886a3f4b3b245f597313780eaa
Author : Jan Grulich <jgrulich@redhat.com>
Date : 2026-10-01T16:52:36+02:00
Stats : +60/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/qt6-qtbase/c/c3dd3fe417d776886a3f4b3b245f597313780eaa?branch=rawhide
Log:
Upstream backport:
Fix crash when fontconfig fallback pattern has no charset
---
diff --git a/qt6-qtbase.spec b/qt6-qtbase.spec
index af9d05b..e62681e 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.11.2
-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/
@@ -100,6 +100,7 @@ Patch58: qtbase-libglvnd.patch
# Upstream patches
Patch100: qtbase-qiconloader-dont-consider-fallbackthemename-in-themename.patch
+Patch101: qtbase-fix-crash-when-fontconfig-fallback-pattern-has-no-charset.patch
# Do not check any files in %%{_qt6_plugindir}/platformthemes/ for requires.
# Those themes are there for platform integration. If the required libraries are
@@ -951,6 +952,10 @@ make check -k ||:
%{_qt6_datadir}/wayland/protocols/
%changelog
+* Thu Oct 01 2026 Jan Grulich <jgrulich@redhat.com> - 6.11.2-3
+- Upstream backport:
+ Fix crash when fontconfig fallback pattern has no charset
+
* Tue Aug 25 2026 Jan Grulich <jgrulich@redhat.com> - 6.11.2-2
- Upstream backport:
QIconLoader: don't consider fallbackThemeName() in themeName()
diff --git a/qtbase-fix-crash-when-fontconfig-fallback-pattern-has-no-charset.patch b/qtbase-fix-crash-when-fontconfig-fallback-pattern-has-no-charset.patch
new file mode 100644
index 0000000..c99f4ed
--- /dev/null
+++ b/qtbase-fix-crash-when-fontconfig-fallback-pattern-has-no-charset.patch
@@ -0,0 +1,54 @@
+From 80ddc8dee6a05cd619085e29fc21ff92c4b877a8 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Imre=20P=C3=A9ntek?= <pentek.imre@gmail.com>
+Date: Sat, 4 Jul 2026 20:13:18 +0200
+Subject: [PATCH] Fix crash when fontconfig fallback pattern has no charset
+
+QFontEngineMultiFontConfig::shouldLoadFontEngineForCharacter() passed
+the address of an uninitialized FcCharSet* to FcPatternGetCharSet()
+and then called FcCharSetHasChar() on it without checking the result.
+A pattern returned by FcFontMatch() is not guaranteed to carry an
+FC_CHARSET element: fontconfig treats the charset as optional, and
+caches produced by other fontconfig builds (e.g. a bundled snapshot
+that indexed .woff/.woff2 files it could not parse as empty patterns)
+can legally serve charset-less patterns. In that case the uninitialized
+pointer is dereferenced inside FcCharSetHasChar() and the process
+crashes with SIGSEGV; builds hardened with
+-ftrivial-auto-var-init=pattern crash deterministically at 0xfefe...
+
+Observed in the wild on Arch/Manjaro after the fontconfig 2.18.1
+upgrade: every Qt application (Qt Creator, CopyQ, KeePassXC, ...)
+crashed in FcCharSetHasChar via QFontEngineMulti::glyphIndex() as soon
+as any glyph fallback lookup ran, because stale fontconfig caches
+served a charset-less pattern for every FcFontMatch() call.
+
+Initialize the pointer and check the FcPatternGetCharSet() result.
+When no charset can be obtained, keep the optimistic default (load the
+engine) exactly as we already do when no match pattern is available,
+so glyph coverage is decided by the font engine itself.
+
+Pick-to: 6.12 6.11 6.8
+Change-Id: I18687e0a7b7a0019a459155395636768ad9ea964
+Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
+---
+ src/gui/text/unix/qfontenginemultifontconfig.cpp | 8 +++++---
+ 1 file changed, 5 insertions(+), 3 deletions(-)
+
+diff --git a/src/gui/text/unix/qfontenginemultifontconfig.cpp b/src/gui/text/unix/qfontenginemultifontconfig.cpp
+index 6419a764f79f..f13943ff5835 100644
+--- a/src/gui/text/unix/qfontenginemultifontconfig.cpp
++++ b/src/gui/text/unix/qfontenginemultifontconfig.cpp
+@@ -25,9 +25,11 @@ bool QFontEngineMultiFontConfig::shouldLoadFontEngineForCharacter(int at, uint u
+ bool charSetHasChar = true;
+ FcPattern *matchPattern = getMatchPatternForFallback(at - 1);
+ if (matchPattern != nullptr) {
+- FcCharSet *charSet;
+- FcPatternGetCharSet(matchPattern, FC_CHARSET, 0, &charSet);
+- charSetHasChar = FcCharSetHasChar(charSet, ucs4);
++ FcCharSet *charSet = nullptr;
++ if (FcPatternGetCharSet(matchPattern, FC_CHARSET, 0, &charSet) == FcResultMatch
++ && charSet != nullptr) {
++ charSetHasChar = FcCharSetHasChar(charSet, ucs4);
++ }
+ }
+
+ return charSetHasChar;
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [rpms/qt6-qtbase] rawhide: Upstream backport:
@ 2026-08-25 6:35 Jan Grulich
0 siblings, 0 replies; 2+ messages in thread
From: Jan Grulich @ 2026-08-25 6:35 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/qt6-qtbase
Branch : rawhide
Commit : 70a8c1ab10260d37fbdea2fd1e67d02ba22465e6
Author : Jan Grulich <jgrulich@redhat.com>
Date : 2026-08-25T08:33:39+02:00
Stats : +43/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/qt6-qtbase/c/70a8c1ab10260d37fbdea2fd1e67d02ba22465e6?branch=rawhide
Log:
Upstream backport:
QIconLoader: don't consider fallbackThemeName() in themeName()
---
diff --git a/qt6-qtbase.spec b/qt6-qtbase.spec
index 589d65f..af9d05b 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.11.2
-Release: 1%{?dist}
+Release: 2%{?dist}
License: LGPL-3.0-only OR GPL-3.0-only WITH Qt-GPL-exception-1.0
Url: http://qt-project.org/
@@ -98,6 +98,9 @@ Patch56: qtbase-mysql.patch
Patch58: qtbase-libglvnd.patch
+# Upstream patches
+Patch100: qtbase-qiconloader-dont-consider-fallbackthemename-in-themename.patch
+
# Do not check any files in %%{_qt6_plugindir}/platformthemes/ for requires.
# Those themes are there for platform integration. If the required libraries are
# not there, the platform to integrate with isn't either. Then Qt will just
@@ -948,6 +951,10 @@ make check -k ||:
%{_qt6_datadir}/wayland/protocols/
%changelog
+* Tue Aug 25 2026 Jan Grulich <jgrulich@redhat.com> - 6.11.2-2
+- Upstream backport:
+ QIconLoader: don't consider fallbackThemeName() in themeName()
+
* Thu Aug 20 2026 Jan Grulich <jgrulich@redhat.com> - 6.11.2-1
- 6.11.2
diff --git a/qtbase-qiconloader-dont-consider-fallbackthemename-in-themename.patch b/qtbase-qiconloader-dont-consider-fallbackthemename-in-themename.patch
new file mode 100644
index 0000000..ec5087d
--- /dev/null
+++ b/qtbase-qiconloader-dont-consider-fallbackthemename-in-themename.patch
@@ -0,0 +1,35 @@
+From 85420d5d4f78a6ba4cf70ed8ee092e0ef4fb9a54 Mon Sep 17 00:00:00 2001
+From: Nicolas Fella <nicolas.fella@kde.org>
+Date: Mon, 24 Aug 2026 16:21:29 +0200
+Subject: [PATCH] QIconLoader: Don't consider fallbackThemeName() in themeName()
+
+themeName and fallbackThemeName are independent things.
+
+bebbf84167a4341eed27ecfca480ff62dfa1b159 mixes the two together,
+which results in setFallbackThemeName() incorrectly changing
+themeName().
+
+Restore that part to how it was before.
+
+Amends bebbf84167a4341eed27ecfca480ff62dfa1b159
+
+Fixes: QTBUG-149431
+Pick-to: 6.12 6.11
+Change-Id: I7bb5e4329b677abb95b74269877f8d9c0222a972
+Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
+---
+
+diff --git a/src/gui/image/qiconloader.cpp b/src/gui/image/qiconloader.cpp
+index 62353ec..4526c6f 100644
+--- a/src/gui/image/qiconloader.cpp
++++ b/src/gui/image/qiconloader.cpp
+@@ -151,8 +151,7 @@
+ return m_userTheme;
+
+ if (m_systemTheme.isEmpty()) {
+- const QString &themeName = systemThemeName();
+- m_systemTheme = !themeName.isEmpty() ? themeName : fallbackThemeName();
++ m_systemTheme = systemThemeName();
+ }
+ return m_systemTheme;
+ }
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-10-01 14:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-01 14:53 [rpms/qt6-qtbase] rawhide: Upstream backport: Jan Grulich
-- strict thread matches above, loose matches on Subject: below --
2026-08-25 6:35 Jan Grulich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox