-
Notifications
You must be signed in to change notification settings - Fork 93
Labels
Amazon Q development agentGenerate new features or iterate code based on issue descriptions and comments.Generate new features or iterate code based on issue descriptions and comments.bugSomething isn't workingSomething isn't working
Description
Describe the bug
I get a InvalidArchive("Could not find EOCD") panic, even though the file works with other tools
To Reproduce
Download https://repo1.maven.org/maven2/net/java/dev/jna/jna/5.6.0/jna-5.6.0.jar
Try running
fn main() {
let file = std::fs::File::open("jna-5.6.0.jar").unwrap();
let reader = std::io::BufReader::new(file);
let archive = zip::ZipArchive::new(reader).expect("invalid archive");
println!("{}", archive.len());
}with any version of zip (2.3.0 or newer, tho, it works properly on version 1.1.4, but I couldn't check in between those versions, because they've been yanked)
Expected behavior
I expected to see the number 170 printed
Desktop (please complete the following information):
- OS: Arch Linux
- Rust: 1.89-x86_64-unknown-linux-gnu
Metadata
Metadata
Assignees
Labels
Amazon Q development agentGenerate new features or iterate code based on issue descriptions and comments.Generate new features or iterate code based on issue descriptions and comments.bugSomething isn't workingSomething isn't working