Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package kdepim-runtime for openSUSE:Factory 
checked in at 2023-04-30 16:07:34
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/kdepim-runtime (Old)
 and      /work/SRC/openSUSE:Factory/.kdepim-runtime.new.1533 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "kdepim-runtime"

Sun Apr 30 16:07:34 2023 rev:105 rq:1083624 version:23.04.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/kdepim-runtime/kdepim-runtime.changes    
2023-04-23 22:45:24.410014195 +0200
+++ /work/SRC/openSUSE:Factory/.kdepim-runtime.new.1533/kdepim-runtime.changes  
2023-04-30 16:07:42.696129061 +0200
@@ -1,0 +2,12 @@
+Sat Apr 29 08:52:14 UTC 2023 - Christophe Marin <christo...@krop.fr>
+
+- Add upstream fixes:
+  * 0001-Fix-single-file-resources-not-reloading-configuratio.patch
+    (kde#425460)
+  * 0004-Skip-EWS-items-where-there-is-no-registered-handler.patch
+    (kde#440831)
+  * 0006-Ignore-infite-set.patch (related: kde#445746, kde#454322)
+  * 0001-Fix-crash-trying-to-access-password-of-empty-account.patch
+    (kde#435427, boo#1187119)
+
+-------------------------------------------------------------------

New:
----
  0001-Fix-crash-trying-to-access-password-of-empty-account.patch
  0001-Fix-single-file-resources-not-reloading-configuratio.patch
  0004-Skip-EWS-items-where-there-is-no-registered-handler.patch
  0006-Ignore-infite-set.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ kdepim-runtime.spec ++++++
--- /var/tmp/diff_new_pack.Very1a/_old  2023-04-30 16:07:43.260132501 +0200
+++ /var/tmp/diff_new_pack.Very1a/_new  2023-04-30 16:07:43.268132549 +0200
@@ -29,6 +29,11 @@
 Source1:        
https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz.sig
 Source2:        applications.keyring
 %endif
+# PATCH-FIX-UPSTREAM
+Patch0:         0001-Fix-single-file-resources-not-reloading-configuratio.patch
+Patch1:         0004-Skip-EWS-items-where-there-is-no-registered-handler.patch
+Patch2:         0006-Ignore-infite-set.patch
+Patch3:         0001-Fix-crash-trying-to-access-password-of-empty-account.patch
 BuildRequires:  cyrus-sasl-devel
 BuildRequires:  extra-cmake-modules
 BuildRequires:  hicolor-icon-theme

++++++ 0001-Fix-crash-trying-to-access-password-of-empty-account.patch ++++++
>From 8344e0cc25d71267e684bf03d658b7f9d05b2d89 Mon Sep 17 00:00:00 2001
From: Carl Schwan <c...@carlschwan.eu>
Date: Thu, 27 Apr 2023 20:44:05 +0200
Subject: [PATCH] Fix crash trying to access password of empty account

The connect method of SessionPool discard the ImapAccount if it is not
empty the requestPassword method will try to fetch the password for the
empty account and this crash due to a null pointer dereference.

BUG: 435427
---
 resources/imap/sessionpool.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/resources/imap/sessionpool.cpp b/resources/imap/sessionpool.cpp
index 36715767d..c5da6abee 100644
--- a/resources/imap/sessionpool.cpp
+++ b/resources/imap/sessionpool.cpp
@@ -84,7 +84,7 @@ void SessionPool::requestPassword()
 
 bool SessionPool::connect(ImapAccount *account)
 {
-    if (m_account) {
+    if (!account) {
         return false;
     }
 
-- 
2.40.0


++++++ 0001-Fix-single-file-resources-not-reloading-configuratio.patch ++++++
>From f0ad4f921341baa50faee2bd4ec53ffcab7e048b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Daniel=20Vr=C3=A1til?= <dvra...@kde.org>
Date: Sat, 22 Apr 2023 12:38:29 +0200
Subject: [PATCH 1/6] Fix single-file-resources not reloading configuration at
 runtime

BUG: 425460
FIXED-IN: 23.04.1
---
 resources/shared/singlefileresource/singlefileresource.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/resources/shared/singlefileresource/singlefileresource.h 
b/resources/shared/singlefileresource/singlefileresource.h
index eb5e0540a..8dc04c0f7 100644
--- a/resources/shared/singlefileresource/singlefileresource.h
+++ b/resources/shared/singlefileresource/singlefileresource.h
@@ -47,6 +47,11 @@ public:
         delete mSettings;
     }
 
+    void applyConfigurationChanges() override
+    {
+        mSettings->load();
+    }
+
     /**
      * Read changes from the backend file.
      */
-- 
2.40.0


++++++ 0004-Skip-EWS-items-where-there-is-no-registered-handler.patch ++++++
>From 20f001338153724d899e9e586a290be6c3f66394 Mon Sep 17 00:00:00 2001
From: Thomas Karpiniec <t...@1.21jiggawatts.net>
Date: Tue, 25 Apr 2023 21:06:04 +1000
Subject: [PATCH 4/6] Skip EWS items where there is no registered handler

Prevents nullptr dereference when handling an unexpected item type
EwsItemTypeItem, such as can be found in "MeContact" on
outlook.com.

BUG: 440831


(cherry picked from commit e6007c7e81d8987fa402f70084675f7ad3e33eac)
---
 resources/ews/ewsfetchitemsjob.cpp | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/resources/ews/ewsfetchitemsjob.cpp 
b/resources/ews/ewsfetchitemsjob.cpp
index 082e9fe8f..e920445cd 100644
--- a/resources/ews/ewsfetchitemsjob.cpp
+++ b/resources/ews/ewsfetchitemsjob.cpp
@@ -311,7 +311,12 @@ void EwsFetchItemsJob::compareItemLists()
             /* Ignore unknown items. */
             continue;
         }
-        QString mimeType = EwsItemHandler::itemHandler(type)->mimeType();
+        auto handler(EwsItemHandler::itemHandler(type));
+        if (!handler) {
+            /* Ignore items where no handler exists. */
+            continue;
+        }
+        QString mimeType = handler->mimeType();
         if (it == itemHash.end()) {
             Item item(mimeType);
             item.setParentCollection(mCollection);
-- 
2.40.0


++++++ 0006-Ignore-infite-set.patch ++++++
>From a740e7fafe67336fdb1189760976a8fd5fe306f2 Mon Sep 17 00:00:00 2001
From: Carl Schwan <c...@carlschwan.eu>
Date: Thu, 27 Apr 2023 23:22:12 +0200
Subject: [PATCH 6/6] Ignore infite set

Infinite IMAP set are likely causing an out of memory exception.

CCBUG: 445746
CCBUG: 454322


(cherry picked from commit a7dad00a23230236113b0edb646f2e47914a812d)
---
 resources/imap/moveitemstask.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/resources/imap/moveitemstask.cpp b/resources/imap/moveitemstask.cpp
index a11e691cb..3e24866bb 100644
--- a/resources/imap/moveitemstask.cpp
+++ b/resources/imap/moveitemstask.cpp
@@ -342,6 +342,10 @@ QVector<qint64> MoveItemsTask::imapSetToList(const 
KIMAP::ImapSet &set)
     const KIMAP::ImapInterval::List lstInterval = set.intervals();
     list.reserve(lstInterval.count());
     for (const KIMAP::ImapInterval &interval : lstInterval) {
+        if (!interval.hasDefinedEnd()) {
+            qCWarning(IMAPRESOURCE_LOG) << "Trying to convert an infinite imap 
interval to a finite list";
+            continue;
+        }
         for (qint64 i = interval.begin(), end = interval.end(); i <= end; ++i) 
{
             list << i;
         }
-- 
2.40.0

Reply via email to