From d3dd27bd412f9ae2c6f164fbcd6ed38c679bd7f2 Mon Sep 17 00:00:00 2001 From: Jacopo De Simoi Date: Fri, 24 Apr 2026 17:15:49 -0400 Subject: [PATCH] Fix crash in kmail --- .../messagelib/0001-Tentative-crash-fix.patch | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 kde-apps/messagelib/0001-Tentative-crash-fix.patch diff --git a/kde-apps/messagelib/0001-Tentative-crash-fix.patch b/kde-apps/messagelib/0001-Tentative-crash-fix.patch new file mode 100644 index 0000000..ef6d268 --- /dev/null +++ b/kde-apps/messagelib/0001-Tentative-crash-fix.patch @@ -0,0 +1,26 @@ +From 90133c5da34945313e51eb4e12708897179194bc Mon Sep 17 00:00:00 2001 +From: Jacopo De Simoi +Date: Thu, 23 Apr 2026 10:42:20 -0400 +Subject: [PATCH] Tentative crash fix + +--- + mimetreeparser/src/nodehelper.cpp | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/mimetreeparser/src/nodehelper.cpp b/mimetreeparser/src/nodehelper.cpp +index 011adf5cb..2ef61387f 100644 +--- a/mimetreeparser/src/nodehelper.cpp ++++ b/mimetreeparser/src/nodehelper.cpp +@@ -58,7 +58,8 @@ void NodeHelper::setNodeProcessed(const KMime::Content *node, bool recurse) + return; + } + mProcessedNodes.append(node); +- qCDebug(MIMETREEPARSER_LOG) << "Node processed: " << node->index().toString() << node->contentType()->as7BitString(); ++ if (node->contentType()) ++ qCDebug(MIMETREEPARSER_LOG) << "Node processed: " << node->index().toString() << node->contentType()->as7BitString(); + //<< " decodedContent" << node->decodedContent(); + if (recurse) { + const auto contents = node->contents(); +-- +2.52.0 +