[Rpm-maint] [PATCH 1/5] Fix indentation and formatting

2016-04-25 Thread Stefan Berger
From: Stefan Berger Fix the indentation and formatting in signature related files. Signed-off-by: Stefan Berger --- lib/rpmsignfiles.c | 12 ++-- sign/rpmgensig.c | 3 ++- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git

[Rpm-maint] [PATCH 4/5] Extend header size to 64MB due to file signatures

2016-04-25 Thread Stefan Berger
From: Stefan Berger Extend the header size to 64MB in case an RPM has a lot of files and the file signatures do not fit within the current limit of 16MB. An example for an RPM with many files is kcbench-data-4.0. It contains more than 52000 files. With each signature with a

[Rpm-maint] [PATCH 2/5] Fix various memory leaks in file signature related functions.

2016-04-25 Thread Stefan Berger
From: Stefan Berger Fix various memory leaks in file signature related functions. Signed-off-by: Stefan Berger --- lib/rpmsignfiles.c | 2 ++ rpmsign.c | 4 +++- sign/rpmgensig.c | 24 +--- 3 files changed, 22

[Rpm-maint] [PATCH 3/5] Check range of algo index parameter before accessing array with it

2016-04-25 Thread Stefan Berger
From: Stefan Berger Check the range of the algo index parameter before using it for accessing an array. Signed-off-by: Stefan Berger --- lib/rpmsignfiles.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/lib/rpmsignfiles.c

[Rpm-maint] [PATCH 0/5] Fix issues related to signed files

2016-04-25 Thread Stefan Berger
This series of patches fixes several issues related to signed files produced by rpmsign. Stefan Stefan Berger (5): Fix indentation and formatting Fix various memory leaks in file signature related functions. Check range of algo index parameter before accessing array with it Extend

[Rpm-maint] [PATCH 5/5] Fix handling of zero-length file digests

2016-04-25 Thread Stefan Berger
From: Stefan Berger Do not try to convert a zero-length file digest to a binary representation. Zero-length file digests may stem from directory entries and symbolic links. Return an empty signature in this case. Returning an empty signature results in the ima.so plugin