From d81382b29a45155705b19f5ac9cab6ec30154d1d Mon Sep 17 00:00:00 2001 From: Danny McClanahan <1305167+cosmicexplorer@users.noreply.github.com> Date: Fri, 24 May 2024 08:59:51 -0400 Subject: [PATCH] revert limit for search_lower_bound to fix benchmark --- src/spec.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/spec.rs b/src/spec.rs index ef413a96..7dc8286f 100644 --- a/src/spec.rs +++ b/src/spec.rs @@ -305,9 +305,7 @@ impl Zip32CentralDirectoryEnd { return Err(ZipError::InvalidArchive("Invalid zip header")); } - // Arbitrary max length we go back to find the zip32 CDE header. - const MAX_HEADER_AND_COMMENT_SIZE: u64 = 66000; - let search_lower_bound = file_length.saturating_sub(MAX_HEADER_AND_COMMENT_SIZE); + let search_lower_bound = 0; const END_WINDOW_SIZE: usize = 512; /* TODO: use static_assertions!() */