public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/tin] epel10: fix segfault when clicking past the end of topic list in xterm (#1921096)
@ 2026-08-23 23:18 Dominik 'Rathann' Mierzejewski
0 siblings, 0 replies; only message in thread
From: Dominik 'Rathann' Mierzejewski @ 2026-08-23 23:18 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/tin
Branch : epel10
Commit : 70f250f074a4baf55c4bbb3183ea034d66d905de
Author : Dominik 'Rathann' Mierzejewski <dominik@greysector.net>
Date : 2021-02-01T11:46:14+01:00
Stats : +18/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/tin/c/70f250f074a4baf55c4bbb3183ea034d66d905de?branch=epel10
Log:
fix segfault when clicking past the end of topic list in xterm (#1921096)
---
diff --git a/tin-2.4.5-segfault.patch b/tin-2.4.5-segfault.patch
new file mode 100644
index 0000000..3334524
--- /dev/null
+++ b/tin-2.4.5-segfault.patch
@@ -0,0 +1,12 @@
+diff -up tin-2.4.5/src/global.c.orig tin-2.4.5/src/global.c
+--- tin-2.4.5/src/global.c.orig 2020-12-01 11:51:01.000000000 +0100
++++ tin-2.4.5/src/global.c 2021-02-01 11:43:34.940564498 +0100
+@@ -331,7 +331,7 @@ global_mouse_action(
+ return GLOBAL_PAGE_DOWN;
+
+ erase_arrow();
+- currmenu->curr = xrow - INDEX_TOP + currmenu->first;
++ currmenu->curr = MIN(xrow - INDEX_TOP + currmenu->first, currmenu->max - INDEX_TOP + 1);
+ currmenu->draw_arrow();
+
+ if (xmouse == MOUSE_BUTTON_1)
diff --git a/tin.spec b/tin.spec
index ac453e4..22fc0c8 100644
--- a/tin.spec
+++ b/tin.spec
@@ -1,12 +1,13 @@
Name: tin
Version: 2.4.5
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Basic Internet news reader
License: BSD
URL: http://www.tin.org/
Source0: ftp://ftp.tin.org/pub/news/clients/tin/stable/tin-%{version}.tar.xz
Source1: ftp://ftp.tin.org/pub/news/clients/tin/stable/tin-%{version}.tar.xz.sign
Source2: tin-pgp-key-0x5A49550EB490B4D1.txt
+Patch0: tin-2.4.5-segfault.patch
BuildRequires: make
BuildRequires: %{_bindir}/ispell
BuildRequires: gcc-c++
@@ -32,6 +33,7 @@ gpg1 --homedir=${workdir} --pgp2 --yes --output="${workring}" --dearmor %{S:2}
gpg1 --homedir=${workdir} --pgp2 --verify --keyring="${workring}" %{S:1} %{S:0}
rm -r ${workdir}
%setup -q
+%patch0 -p1
%build
%configure \
@@ -76,6 +78,9 @@ rm -r ${workdir}
%{_mandir}/man5/*
%changelog
+* Mon Feb 01 2021 Dominik Mierzejewski <rpm@greysector.net> - 2.4.5-3
+- fix segfault when clicking past the end of topic list in xterm (#1921096)
+
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.5-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-23 23:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-23 23:18 [rpms/tin] epel10: fix segfault when clicking past the end of topic list in xterm (#1921096) Dominik 'Rathann' Mierzejewski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox