aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2017-10-03 19:06:24 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2017-10-03 19:06:24 +0200
commit87dbde4f3b078173e53cd45cac000c2d2751b370 (patch)
treee39cbd11280cd0b303f24b53a7944163b2eb5a65 /URPM.xs
parent9f2fb1c976ac6befb1364f78609888a02fc59826 (diff)
downloadperl-URPM-87dbde4f3b078173e53cd45cac000c2d2751b370.tar
perl-URPM-87dbde4f3b078173e53cd45cac000c2d2751b370.tar.gz
perl-URPM-87dbde4f3b078173e53cd45cac000c2d2751b370.tar.bz2
perl-URPM-87dbde4f3b078173e53cd45cac000c2d2751b370.tar.xz
perl-URPM-87dbde4f3b078173e53cd45cac000c2d2751b370.zip
fix segfault when checking invalid signatures
This is a rpm-4.14 regression where rpmReadPackageFile() no longer initialize the header when the pkg is corrupted
Diffstat (limited to 'URPM.xs')
-rw-r--r--URPM.xs2
1 files changed, 1 insertions, 1 deletions
diff --git a/URPM.xs b/URPM.xs
index 8926770..cf2eac6 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -3136,7 +3136,7 @@ Urpm_verify_signature(filename, prefix=NULL)
char result[1024];
rpmRC rc;
FD_t fd;
- Header h;
+ Header h = headerNew();
CODE:
fd = Fopen(filename, "r");
if (fd == NULL)