git: a02112589ecf - main - security/qgpgme: add upstream patch
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 15 Aug 2025 18:16:33 UTC
The branch main has been updated by makc: URL: https://cgit.FreeBSD.org/ports/commit/?id=a02112589ecfe9ac1ae148331d409d2347d40f95 commit a02112589ecfe9ac1ae148331d409d2347d40f95 Author: Max Brazhnikov <makc@FreeBSD.org> AuthorDate: 2025-08-15 17:44:23 +0000 Commit: Max Brazhnikov <makc@FreeBSD.org> CommitDate: 2025-08-15 17:44:23 +0000 security/qgpgme: add upstream patch to fix crash in upcoming KMail 25.08. Upstream commits: https://dev.gnupg.org/rGPGMEQT150b23c105f3ea7034e6f106e60686aea4e4a13e https://dev.gnupg.org/rGPGMEQT86d58c452e0028ea3b59a6ceac7060ece99b4fd2 Approved by: jhale@ via irc --- security/qgpgme/Makefile | 1 + security/qgpgme/files/patch-src_dn.cpp | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/security/qgpgme/Makefile b/security/qgpgme/Makefile index f45cb981a8f8..6ae113d7dd72 100644 --- a/security/qgpgme/Makefile +++ b/security/qgpgme/Makefile @@ -1,5 +1,6 @@ PORTNAME= qgpgme PORTVERSION= 2.0.0 +PORTREVISION= 1 CATEGORIES= security MASTER_SITES= GNUPG PKGNAMESUFFIX= -${FLAVOR} diff --git a/security/qgpgme/files/patch-src_dn.cpp b/security/qgpgme/files/patch-src_dn.cpp new file mode 100644 index 000000000000..f8df815f4e41 --- /dev/null +++ b/security/qgpgme/files/patch-src_dn.cpp @@ -0,0 +1,12 @@ +--- src/dn.cpp.orig 2025-06-03 15:55:22 UTC ++++ src/dn.cpp +@@ -215,6 +215,9 @@ static std::pair<std::optional<std::string_view>, std: + /* hexstring */ + stringv.remove_prefix(1); + auto endHex = stringv.find_first_not_of("1234567890abcdefABCDEF"sv); ++ if (endHex == std::string_view::npos) { ++ endHex = stringv.size(); ++ } + auto value = parseHexString(stringv.substr(0, endHex)); + if (!value.has_value()) { + return {};