import UBI unzip-6.0-69.el10

This commit is contained in:
eabdullin 2025-11-11 22:05:17 +00:00
parent 03d0a881fd
commit 77c87e75c0
2 changed files with 28 additions and 1 deletions

View File

@ -0,0 +1,19 @@
From: Roy Tam
Subject: Handle Microsoft ZIP64 files by ignoring invalid "Total number of disks" field
Origin: https://sourceforge.net/p/infozip/bugs/42/
Bug: https://sourceforge.net/p/infozip/bugs/42/
Bug-Debian: https://bugs.debian.org/1064000
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/unzip/+bug/2051952
X-Debian-version: 6.0-29
--- a/process.c
+++ b/process.c
@@ -1281,7 +1281,7 @@
fprintf(stdout,"\nnumber of disks (ECR) %u, (ECLOC64) %lu\n",
G.ecrec.number_this_disk, ecloc64_total_disks); fflush(stdout);
#endif
- if ((G.ecrec.number_this_disk != 0xFFFF) &&
+ if ((G.ecrec.number_this_disk != 0xFFFF) && ecloc64_total_disks &&
(G.ecrec.number_this_disk != ecloc64_total_disks - 1)) {
/* Note: For some unknown reason, the developers at PKWARE decided to
store the "zip64 total disks" value as a counter starting from 1,

View File

@ -6,7 +6,7 @@
Summary: A utility for unpacking zip files
Name: unzip
Version: 6.0
Release: 68%{?dist}
Release: 69%{?dist}
License: Info-ZIP
Source: http://downloads.sourceforge.net/infozip/unzip60.tar.gz
@ -80,6 +80,9 @@ Patch36: unzip-6.0-fix-warning-messages-on-big-files.patch
Patch37: unzip-zipbomb-part7.patch
Patch38: unzip-6.0-sast.patch
#https://sources.debian.org/src/unzip/6.0-29/debian/patches/29-handle-windows-zip64-files.patch/
Patch39: unzip-6.0-RHEL-86228.patch
URL: http://infozip.sourceforge.net
BuildRequires: make
BuildRequires: bzip2-devel, gcc
@ -136,6 +139,7 @@ a zip archive.
%patch36 -p1
%patch37 -p1
%patch38 -p1
%patch39 -p1
%build
# IZ_HAVE_UXUIDGID is needed for right functionality of unzip -X
@ -154,6 +158,10 @@ make -f unix/Makefile prefix=$RPM_BUILD_ROOT%{_prefix} MANDIR=$RPM_BUILD_ROOT%{_
%{_mandir}/*/*
%changelog
* Mon Apr 07 2025 Jakub Martisko <jamartis@redhat.com> - 6.0-69
- Allow decompression of some wrongly compressed files
Resolves: RHEL-86230
* Tue Nov 26 2024 Jakub Martisko <jamartis@redhat.com> - 6.0-68
- Fix a sast issue (overlapping strcopy)
Resolves: RHEL-44659