diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2017-10-03 19:06:24 +0200 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2017-10-03 19:06:24 +0200 |
commit | 87dbde4f3b078173e53cd45cac000c2d2751b370 (patch) | |
tree | e39cbd11280cd0b303f24b53a7944163b2eb5a65 | |
parent | 9f2fb1c976ac6befb1364f78609888a02fc59826 (diff) | |
download | perl-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
-rw-r--r-- | NEWS | 1 | ||||
-rw-r--r-- | URPM.xs | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -1,4 +1,5 @@ - testsuite: + o fix segfault with rpm-4.14 when checking invalid signatures o revert workaround perl-5.26 vs librpm bug which results on exit cleanup Version 5.14 - 7 September 2017 @@ -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) |