diff -Nru hexchat-2.16.1/debian/changelog hexchat-2.16.1/debian/changelog --- hexchat-2.16.1/debian/changelog 2022-12-25 20:00:26.000000000 +0000 +++ hexchat-2.16.1/debian/changelog 2024-02-22 21:45:04.000000000 +0000 @@ -1,3 +1,9 @@ +hexchat (2.16.1-1ubuntu0.23.10.1) mantic; urgency=medium + + * Fix hexchat crash for specific links. (LP: #2029314) + + -- Sudip Mukherjee Thu, 22 Feb 2024 21:45:04 +0000 + hexchat (2.16.1-1build2) lunar; urgency=medium * No-change rebuild with Python 3.11 as default diff -Nru hexchat-2.16.1/debian/control hexchat-2.16.1/debian/control --- hexchat-2.16.1/debian/control 2022-04-22 20:51:59.000000000 +0100 +++ hexchat-2.16.1/debian/control 2024-02-22 21:45:04.000000000 +0000 @@ -1,7 +1,8 @@ Source: hexchat Section: net Priority: optional -Maintainer: Mattia Rizzolo +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Mattia Rizzolo Build-Depends: debhelper-compat (= 13), gettext, diff -Nru hexchat-2.16.1/debian/patches/0001-Be-even-more-picky-about-invalid-URLs.patch hexchat-2.16.1/debian/patches/0001-Be-even-more-picky-about-invalid-URLs.patch --- hexchat-2.16.1/debian/patches/0001-Be-even-more-picky-about-invalid-URLs.patch 1970-01-01 01:00:00.000000000 +0100 +++ hexchat-2.16.1/debian/patches/0001-Be-even-more-picky-about-invalid-URLs.patch 2024-02-22 21:45:04.000000000 +0000 @@ -0,0 +1,30 @@ +From c48afe3799e648e0ded2bf07deeb082028b6c5ac Mon Sep 17 00:00:00 2001 +From: Patrick Griffis +Date: Tue, 14 Mar 2023 21:21:22 -0500 +Subject: [PATCH] Be even more picky about invalid URLs + +Origin: upstream, https://github.com/hexchat/hexchat/commit/c48afe3799e648e0ded2bf07deeb082028b6c5ac +Bug: https://github.com/hexchat/hexchat/issues/2687 +Bug-Ubuntu: https://launchpad.net/bugs/2029314 +Last-Update: 2024-02-22 +--- + src/fe-gtk/fe-gtk.c | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +diff --git a/src/fe-gtk/fe-gtk.c b/src/fe-gtk/fe-gtk.c +index 38e6172d..125ab577 100644 +--- a/src/fe-gtk/fe-gtk.c ++++ b/src/fe-gtk/fe-gtk.c +@@ -1065,8 +1065,7 @@ uri_contains_forbidden_characters (const char *uri) + { + while (*uri) + { +- /* This is not an exhaustive list, the full URI has segments that allow characters like "[]:" for example. */ +- if (strchr ("`<> ${}\"+", *uri) != NULL || (*uri & 0x80) /* non-ascii */) ++ if (!g_ascii_isalnum (*uri) && !strchr ("-._~:/?#[]@!$&'()*+,;=", *uri)) + return TRUE; + uri++; + } +-- +2.39.2 + diff -Nru hexchat-2.16.1/debian/patches/series hexchat-2.16.1/debian/patches/series --- hexchat-2.16.1/debian/patches/series 1970-01-01 01:00:00.000000000 +0100 +++ hexchat-2.16.1/debian/patches/series 2024-02-22 21:45:04.000000000 +0000 @@ -0,0 +1 @@ +0001-Be-even-more-picky-about-invalid-URLs.patch