Handle Zip files with invalid crc32 checksum

If I understand correctly zip crate computes checksum and compares one within the archive, if it doesn't match the method fails.
In my "specific" case, I have some files with wrong checksum but machine I'm working on still processes them because the content of the file is still valid, just the checksum not matching.

What is a good way to handle such cases, how can I extract data without checking the checksum?

I don't see any config option in the zip crate. However, if you're using it through Cargo, you can patch and replace it using Cargo's patch directive and modify the crc32 part of the zip crate to disable it.

1 Like

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.