Hello community, here is the log from the commit of package kmod for openSUSE:Factory checked in at 2018-04-16 12:43:24 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/kmod (Old) and /work/SRC/openSUSE:Factory/.kmod.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "kmod" Mon Apr 16 12:43:24 2018 rev:49 rq:595282 version:25 Changes: -------- --- /work/SRC/openSUSE:Factory/kmod/kmod-testsuite.changes 2018-03-26 12:02:08.912796271 +0200 +++ /work/SRC/openSUSE:Factory/.kmod.new/kmod-testsuite.changes 2018-04-16 12:43:26.373226487 +0200 @@ -1,0 +2,6 @@ +Fri Apr 6 10:43:42 UTC 2018 - [email protected] + +- Fix crash when PKCS#7 signer name is not present in signature (bsc#1088244) + + libkmod-signature-pkcs-7-fix-crash-when-signer-info-.patch + +------------------------------------------------------------------- kmod.changes: same change New: ---- libkmod-signature-pkcs-7-fix-crash-when-signer-info-.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ kmod-testsuite.spec ++++++ --- /var/tmp/diff_new_pack.M9p8Dx/_old 2018-04-16 12:43:27.225195485 +0200 +++ /var/tmp/diff_new_pack.M9p8Dx/_new 2018-04-16 12:43:27.225195485 +0200 @@ -37,6 +37,7 @@ 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 @@ %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 ++++++ kmod.spec ++++++ --- /var/tmp/diff_new_pack.M9p8Dx/_old 2018-04-16 12:43:27.245194757 +0200 +++ /var/tmp/diff_new_pack.M9p8Dx/_new 2018-04-16 12:43:27.245194757 +0200 @@ -36,6 +36,7 @@ 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 @@ %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 ++++++ libkmod-signature-pkcs-7-fix-crash-when-signer-info-.patch ++++++ >From 22afe9ca4bd26287554f282cbed9a367deb77186 Mon Sep 17 00:00:00 2001 From: Michal Suchanek <[email protected]> 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 <[email protected]> Signed-off-by: Michal Suchanek <[email protected]> --- 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
