Skip to content

Commit

Permalink
revert limit for search_lower_bound to fix benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmicexplorer committed May 24, 2024
1 parent 8e5b157 commit d81382b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!() */
Expand Down

0 comments on commit d81382b

Please sign in to comment.