From 77c87e75c096df922b37d466c02cf3a96f2df961 Mon Sep 17 00:00:00 2001 From: eabdullin Date: Tue, 11 Nov 2025 22:05:17 +0000 Subject: [PATCH] import UBI unzip-6.0-69.el10 --- unzip-6.0-RHEL-86228.patch | 19 +++++++++++++++++++ unzip.spec | 10 +++++++++- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 unzip-6.0-RHEL-86228.patch diff --git a/unzip-6.0-RHEL-86228.patch b/unzip-6.0-RHEL-86228.patch new file mode 100644 index 0000000..25c2fbb --- /dev/null +++ b/unzip-6.0-RHEL-86228.patch @@ -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, diff --git a/unzip.spec b/unzip.spec index da8dd22..645d1f6 100644 --- a/unzip.spec +++ b/unzip.spec @@ -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 - 6.0-69 +- Allow decompression of some wrongly compressed files +Resolves: RHEL-86230 + * Tue Nov 26 2024 Jakub Martisko - 6.0-68 - Fix a sast issue (overlapping strcopy) Resolves: RHEL-44659