Hello community, here is the log from the commit of package pesign for openSUSE:Factory checked in at 2018-04-10 09:48:30 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/pesign (Old) and /work/SRC/openSUSE:Factory/.pesign.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "pesign" Tue Apr 10 09:48:30 2018 rev:28 rq:592978 version:0.112 Changes: -------- --- /work/SRC/openSUSE:Factory/pesign/pesign.changes 2016-08-18 09:15:40.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.pesign.new/pesign.changes 2018-04-10 09:48:33.992734745 +0200 @@ -1,0 +2,6 @@ +Mon Apr 2 09:37:36 UTC 2018 - [email protected] + +- Add pesign-bsc1087742-fix-efisiglist.patch to fix the generation + of efi signature list. (bsc#1087742) + +------------------------------------------------------------------- New: ---- pesign-bsc1087742-fix-efisiglist.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ pesign.spec ++++++ --- /var/tmp/diff_new_pack.b9xm3h/_old 2018-04-10 09:48:34.928700836 +0200 +++ /var/tmp/diff_new_pack.b9xm3h/_new 2018-04-10 09:48:34.928700836 +0200 @@ -1,7 +1,7 @@ # # spec file for package pesign # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -20,7 +20,7 @@ Version: 0.112 Release: 0 Summary: Signing tool for PE-COFF binaries -License: GPL-2.0 +License: GPL-2.0-only Group: Productivity/Security Url: https://github.com/rhinstaller/pesign Source: https://github.com/rhinstaller/pesign/releases/download/%{version}/%{name}-%{version}.tar.bz2 @@ -36,6 +36,8 @@ Patch6: pesign-fix-authvar-write-loop.patch # PATCH-FIX-UPSTREAM pesign-fix-argument-list.patch [email protected] -- Fix the argument list parsing Patch7: pesign-fix-argument-list.patch +# PATCH-FIX-UPSTREAM bsc#1087742 pesign-bsc1087742-fix-efisiglist.patch [email protected] -- Fix efi signature list generation +Patch8: pesign-bsc1087742-fix-efisiglist.patch BuildRequires: efivar-devel BuildRequires: libuuid-devel BuildRequires: mozilla-nss-devel @@ -58,6 +60,7 @@ %patch5 -p1 %patch6 -p1 %patch7 -p1 +%patch8 -p1 %build make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" ++++++ pesign-bsc1087742-fix-efisiglist.patch ++++++ >From 4279d9a36d6c0d09295a76160e26cbe1bbf37591 Mon Sep 17 00:00:00 2001 From: Gary Lin <[email protected]> Date: Fri, 30 Mar 2018 12:25:34 +0800 Subject: [PATCH] efisiglist: Copy the header correctly signature_list wasn't copied corretly to efi_signature_list because SignatureType in signature_list is a pointer while that in efi_signature_list is not. Signed-off-by: Gary Lin <[email protected]> --- src/siglist.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/siglist.c b/src/siglist.c index 6e59164..e74eb10 100644 --- a/src/siglist.c +++ b/src/siglist.c @@ -217,7 +217,10 @@ signature_list_realize(signature_list *sl, void **out, size_t *outsize) return -1; esl = ret; - memcpy(esl, sl, sizeof (*esl)); + memcpy(&esl->SignatureType, sl->SignatureType, sizeof(efi_guid_t)); + esl->SignatureListSize = sl->SignatureListSize; + esl->SignatureHeaderSize = sl->SignatureHeaderSize; + esl->SignatureSize = sl->SignatureSize; uint8_t *pos = ret + sizeof (*esl); for (int i = 0; i < count; i++) { -- 2.16.2
