Accepting request 595282 from Base:System
OBS-URL: https://build.opensuse.org/request/show/595282 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/kmod?expand=0&rev=49
This commit is contained in:
commit
45eadeb224
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Apr 6 10:43:42 UTC 2018 - msuchanek@suse.com
|
||||
|
||||
- Fix crash when PKCS#7 signer name is not present in signature (bsc#1088244)
|
||||
+ libkmod-signature-pkcs-7-fix-crash-when-signer-info-.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 16 13:08:14 CET 2018 - ro@suse.de
|
||||
|
||||
|
@ -37,6 +37,7 @@ Patch3: 0009-libkmod-Implement-filtering-of-unsupported-modules-o.patch
|
||||
Patch4: 0010-modprobe-Implement-allow-unsupported-modules.patch
|
||||
Patch5: 0011-Do-not-filter-unsupported-modules-when-running-a-van.patch
|
||||
Patch6: libkmod-signature-Fix-crash-when-module-signature-is.patch
|
||||
Patch7: libkmod-signature-pkcs-7-fix-crash-when-signer-info-.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: asn1c
|
||||
BuildRequires: autoconf
|
||||
@ -61,7 +62,7 @@ buildloop with the kernel.
|
||||
|
||||
%prep
|
||||
%setup -q -n kmod-%version
|
||||
%patch -P 0 -P 1 -P 2 -P 3 -P 4 -P 5 -P 6 -p1
|
||||
%patch -P 0 -P 1 -P 2 -P 3 -P 4 -P 5 -P 6 -P 7 -p1
|
||||
|
||||
%build
|
||||
autoreconf -fi
|
||||
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Apr 6 10:43:42 UTC 2018 - msuchanek@suse.com
|
||||
|
||||
- Fix crash when PKCS#7 signer name is not present in signature (bsc#1088244)
|
||||
+ libkmod-signature-pkcs-7-fix-crash-when-signer-info-.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 16 13:08:14 CET 2018 - ro@suse.de
|
||||
|
||||
|
@ -36,6 +36,7 @@ Patch3: 0009-libkmod-Implement-filtering-of-unsupported-modules-o.patch
|
||||
Patch4: 0010-modprobe-Implement-allow-unsupported-modules.patch
|
||||
Patch5: 0011-Do-not-filter-unsupported-modules-when-running-a-van.patch
|
||||
Patch6: libkmod-signature-Fix-crash-when-module-signature-is.patch
|
||||
Patch7: libkmod-signature-pkcs-7-fix-crash-when-signer-info-.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: asn1c
|
||||
BuildRequires: autoconf
|
||||
@ -108,7 +109,7 @@ in %lname.
|
||||
|
||||
%prep
|
||||
%setup -q -n kmod-%version
|
||||
%patch -P 0 -P 1 -P 2 -P 3 -P 4 -P 5 -P 6 -p1
|
||||
%patch -P 0 -P 1 -P 2 -P 3 -P 4 -P 5 -P 6 -P 7 -p1
|
||||
|
||||
%build
|
||||
autoreconf -fi
|
||||
|
28
libkmod-signature-pkcs-7-fix-crash-when-signer-info-.patch
Normal file
28
libkmod-signature-pkcs-7-fix-crash-when-signer-info-.patch
Normal file
@ -0,0 +1,28 @@
|
||||
From 22afe9ca4bd26287554f282cbed9a367deb77186 Mon Sep 17 00:00:00 2001
|
||||
From: Michal Suchanek <msuchanek@suse.de>
|
||||
Date: Fri, 6 Apr 2018 12:36:41 +0200
|
||||
Subject: [PATCH] libkmod-signature: pkcs#7: fix crash when signer info is not
|
||||
present.
|
||||
|
||||
Reported-by: Kazuya Saito <saito.kazuya@jp.fujitsu.com>
|
||||
Signed-off-by: Michal Suchanek <msuchanek@suse.de>
|
||||
---
|
||||
libkmod/libkmod-signature.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/libkmod/libkmod-signature.c b/libkmod/libkmod-signature.c
|
||||
index fae074e6dd1d..782e96f69fef 100644
|
||||
--- a/libkmod/libkmod-signature.c
|
||||
+++ b/libkmod/libkmod-signature.c
|
||||
@@ -166,7 +166,7 @@ kmod_module_signature_info_pkcs7(const char *mem,
|
||||
sig_info->key_id_len = cert->key_id_size;
|
||||
|
||||
sig_info->signer = cert->signer;
|
||||
- sig_info->signer_len = strlen(cert->signer);
|
||||
+ sig_info->signer_len = cert->signer ? strlen(cert->signer) : 0;
|
||||
|
||||
sig_info->algo = NULL;
|
||||
sig_info->hash_algo = cert->hash_algo;
|
||||
--
|
||||
2.13.6
|
||||
|
Loading…
Reference in New Issue
Block a user