revert limit for search_lower_bound to fix benchmark

This commit is contained in:
Danny McClanahan 2024-05-24 08:59:51 -04:00
parent 8e5b157853
commit d81382b29a
No known key found for this signature in database
GPG key ID: 6105C10F1A199CC7

View file

@ -305,9 +305,7 @@ impl Zip32CentralDirectoryEnd {
return Err(ZipError::InvalidArchive("Invalid zip header")); return Err(ZipError::InvalidArchive("Invalid zip header"));
} }
// Arbitrary max length we go back to find the zip32 CDE header. let search_lower_bound = 0;
const MAX_HEADER_AND_COMMENT_SIZE: u64 = 66000;
let search_lower_bound = file_length.saturating_sub(MAX_HEADER_AND_COMMENT_SIZE);
const END_WINDOW_SIZE: usize = 512; const END_WINDOW_SIZE: usize = 512;
/* TODO: use static_assertions!() */ /* TODO: use static_assertions!() */