From 9b65b8a523d1ab6abb4ceee1d4856aa21bac3d60 Mon Sep 17 00:00:00 2001 From: Chris Hennick Date: Fri, 12 May 2023 09:07:42 -0700 Subject: [PATCH] Bug fix --- src/read.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/read.rs b/src/read.rs index 2fe02dc7..05e554aa 100644 --- a/src/read.rs +++ b/src/read.rs @@ -397,9 +397,6 @@ impl ZipArchive { } }; // It has both, so check if the zip64 footer is valid; if not, assume zip32 - if directory_start_64 - archive_offset_64 != directory_start_32 - archive_offset_32 { - return Ok((archive_offset_32, directory_start_32, number_of_files_32)); - } if number_of_files_64 != number_of_files_32 && number_of_files_32 != u16::MAX as usize { return Ok((archive_offset_32, directory_start_32, number_of_files_32)); }