Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package PackageKit for openSUSE:Factory 
checked in at 2021-08-25 20:56:26
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/PackageKit (Old)
 and      /work/SRC/openSUSE:Factory/.PackageKit.new.1899 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "PackageKit"

Wed Aug 25 20:56:26 2021 rev:221 rq:913703 version:1.2.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/PackageKit/PackageKit.changes    2021-07-30 
23:22:38.247606037 +0200
+++ /work/SRC/openSUSE:Factory/.PackageKit.new.1899/PackageKit.changes  
2021-08-25 20:56:59.825256592 +0200
@@ -1,0 +2,7 @@
+Fri Aug 20 01:31:50 UTC 2021 - Jonathan Kang <songchuan.k...@suse.com>
+
+- Add PackageKit-zypp-fix-crash-with-empty-search-string.patch:
+  zypp: Fix crash when search string is NULL (bsc#1179287,
+  gh#hughsie/PackageKit/commit#21ccf49).
+
+-------------------------------------------------------------------

New:
----
  PackageKit-zypp-fix-crash-with-empty-search-string.patch

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

Other differences:
------------------
++++++ PackageKit.spec ++++++
--- /var/tmp/diff_new_pack.vr1IJb/_old  2021-08-25 20:57:00.617255553 +0200
+++ /var/tmp/diff_new_pack.vr1IJb/_new  2021-08-25 20:57:00.621255547 +0200
@@ -66,6 +66,8 @@
 Patch10:        PackageKit-cancel-transaction-if-daemon-disappears.patch
 # PATCH-FIX-UPSTREAM PackageKit-dnf-ignore-weak-deps.patch 
gh#dfaggioli/PackageKit#486 gh#Conan-Kudo/PackageKit#488 
gh#Conan-Kudo/PackageKit/commit/#ecd4a96  -- dnf-backend: honor 
install_weak_deps=False if it is there
 Patch11:        PackageKit-dnf-ignore-weak-deps.patch
+# PATCH-FIX-UPSTREAM PackageKit-zypp-fix-crash-with-empty-search-string.patch 
gh#hughsie/PackageKit/commit#21ccf49, bsc#1179287 sck...@suse.com -- zypp: Fix 
crash when search string is NULL
+Patch12:        PackageKit-zypp-fix-crash-with-empty-search-string.patch
 
 BuildRequires:  fdupes
 BuildRequires:  gcc-c++


++++++ PackageKit-zypp-fix-crash-with-empty-search-string.patch ++++++
>From 21ccf49464630cb9da7792d375f472c53717eecb Mon Sep 17 00:00:00 2001
From: Jonathan Kang <jonathank...@gnome.org>
Date: Thu, 12 Aug 2021 14:39:26 +0800
Subject: [PATCH] zypp: Fix crash when search string is NULL

https://bugzilla.suse.com/show_bug.cgi?id=1179287
---
 backends/zypp/pk-backend-zypp.cpp | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/backends/zypp/pk-backend-zypp.cpp 
b/backends/zypp/pk-backend-zypp.cpp
index 6da70348b..fca8ac032 100644
--- a/backends/zypp/pk-backend-zypp.cpp
+++ b/backends/zypp/pk-backend-zypp.cpp
@@ -3088,6 +3088,12 @@ backend_find_packages_thread (PkBackendJob *job, 
GVariant *params, gpointer user
                &_filters,
                &values);
 
+       if (values == NULL && values[0] == NULL) {
+               pk_backend_job_error_code (job, 
PK_ERROR_ENUM_PACKAGE_ID_INVALID,
+                                          "Empty search string is not 
supported.");
+               return;
+       }
+
        ZyppJob zjob(job);
        ZYpp::Ptr zypp = zjob.get_zypp();
        
-- 
2.31.1

Reply via email to