public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Gwyn Ciesla <gwync@protonmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/transmission] epel10: Fix for RPC crash
Date: Mon, 20 Jul 2026 20:38:02 GMT	[thread overview]
Message-ID: <178457988238.1.6771375443709023864.rpms-transmission-fc46db403146@fedoraproject.org> (raw)

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
 

                 reply	other threads:[~2026-07-20 20:38 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=178457988238.1.6771375443709023864.rpms-transmission-fc46db403146@fedoraproject.org \
    --to=gwync@protonmail.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