diff options
Diffstat (limited to 'security/qgpgme/files/patch-src_dn.cpp')
-rw-r--r-- | security/qgpgme/files/patch-src_dn.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
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 {}; |