unzip/unzip-6.0-fix-warning-messages-on-big-files.patch
Jakub Martisko ca31be5952 Fix: Unzip Fails on Large Zip Files
Resolves: RHEL-45997
2024-07-03 15:04:58 +02:00

16 lines
440 B
Diff

From: "Steven M. Schweda" <sms@antinode.info>
Subject: Fix lame code in fileio.c
Bug-Debian: https://bugs.debian.org/929502
X-Debian-version: 6.0-23
--- a/fileio.c
+++ b/fileio.c
@@ -2477,6 +2477,7 @@
*/
return (((zusz_t)sig[7]) << 56)
+ (((zusz_t)sig[6]) << 48)
+ + (((zusz_t)sig[5]) << 40)
+ (((zusz_t)sig[4]) << 32)
+ (zusz_t)((((ulg)sig[3]) << 24)
+ (((ulg)sig[2]) << 16)