From 13f0260beae851f7d5dd96e9ef757d8d6d7daac1 Mon Sep 17 00:00:00 2001 From: Mark Adler Date: Sun, 9 Feb 2020 07:20:13 -0800 Subject: [PATCH] Fix false overlapped components detection on 32-bit systems. 32-bit systems with ZIP64_SUPPORT enabled could have different size types for zoff_t and zusz_t. That resulted in bad parameter passing to the bound tracking functions, itself due to the lack of use of C function prototypes in unzip. This commit assures that parameters are cast properly for those calls. This problem occurred only for ill-chosen make options, which give a 32-bit zoff_t. A proper build will result in a zoff_t of 64 bits, even on 32-bit systems. --- extract.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/extract.c b/extract.c index 1b73cb0..d9866f9 100644 --- a/extract.c +++ b/extract.c @@ -329,7 +329,7 @@ static ZCONST char Far OverlappedComponents[] =
aboutsummaryrefslogtreecommitdiff
path: root/