public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/transmission] epel10: Fix for RPC crash
@ 2026-07-20 20:38 Gwyn Ciesla
  0 siblings, 0 replies; only message in thread
From: Gwyn Ciesla @ 2026-07-20 20:38 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/transmission
Branch : epel10
Commit : fc46db403146bb9ef71afd4e19812ea3bfd42652
Author : Gwyn Ciesla <gwync@protonmail.com>
Date   : 2026-03-04T08:31:51-06:00
Stats  : +42/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/transmission/c/fc46db403146bb9ef71afd4e19812ea3bfd42652?branch=epel10

Log:
Fix for RPC crash

---
diff --git a/144871ed5ec62d9b45f28774923ac83532eb1a2d.patch b/144871ed5ec62d9b45f28774923ac83532eb1a2d.patch
new file mode 100644
index 0000000..db0a1bf
--- /dev/null
+++ b/144871ed5ec62d9b45f28774923ac83532eb1a2d.patch
@@ -0,0 +1,37 @@
+From 144871ed5ec62d9b45f28774923ac83532eb1a2d Mon Sep 17 00:00:00 2001
+From: Charles Kerr <charles@charleskerr.com>
+Date: Tue, 24 Feb 2026 22:44:06 -0600
+Subject: [PATCH] fix: 4.1.0 crash when parsing some RPC responses from older
+ Transmission servers (#8607)
+
+---
+ qt/VariantHelpers.cc | 9 +++++++--
+ 1 file changed, 7 insertions(+), 2 deletions(-)
+
+diff --git a/qt/VariantHelpers.cc b/qt/VariantHelpers.cc
+index b3e1c72e6c9..19cfea70f48 100644
+--- a/qt/VariantHelpers.cc
++++ b/qt/VariantHelpers.cc
+@@ -15,6 +15,7 @@
+ #include <QUrl>
+ 
+ #include <libtransmission/serializer.h>
++#include <libtransmission/web-utils.h>
+ 
+ #include "Application.h" // qApp
+ #include "Speed.h"
+@@ -186,8 +187,12 @@ bool change(TrackerStat& setme, tr_variant const* value)
+     {
+         if (setme.sitename.isEmpty())
+         {
+-            QStringList const separated_host = QUrl{ setme.announce }.host().split(QStringLiteral("."));
+-            setme.sitename = separated_host.at(separated_host.size() - 2);
++            auto const announce_str = setme.announce.toStdString();
++            if (auto const parsed = tr_urlParse(announce_str))
++            {
++                auto const sitename = parsed->sitename;
++                setme.sitename = QString::fromUtf8(std::data(sitename), std::size(sitename));
++            }
+         }
+ 
+         setme.announce = trApp->intern(setme.announce);

diff --git a/transmission.spec b/transmission.spec
index f161663..b9aa6a8 100644
--- a/transmission.spec
+++ b/transmission.spec
@@ -1,6 +1,6 @@
 Name:           transmission
 Version:        4.1.1
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        A lightweight GTK+ BitTorrent client
 # See COPYING. This licensing situation is... special.
 License:        MIT and GPL-2.0-only
@@ -15,6 +15,7 @@ Patch0:         0001-gtk-use-com.transmissionbt.Transmission.-D-Bus-names.patch
 # Proposed upstream: https://github.com/transmission/transmission/issues/7567
 Patch1:         0002-Make-compatible-with-CMake-4.0.patch
 Patch2:         7669.patch
+Patch3:         144871ed5ec62d9b45f28774923ac83532eb1a2d.patch
 
 BuildRequires:  make
 BuildRequires:  cmake
@@ -196,6 +197,9 @@ install -m0644 -D transmission.sysusers.conf %{buildroot}%{_sysusersdir}/transmi
 %doc %{_mandir}/man1/transmission-qt.*
 
 %changelog
+* Tue Mar 03 2026 Gwyn Ciesla <gwync@protonmail.com> - 4.1.1-2
+- Patch for remote RPC crash
+
 * Wed Feb 18 2026 Gwyn Ciesla <gwync@protonmail.com> - 4.1.1-1
 - 4.1.1
 

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

only message in thread, other threads:[~2026-07-20 20:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-20 20:38 [rpms/transmission] epel10: Fix for RPC crash Gwyn Ciesla

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