Skip to content

Add from_reader for types implementing Read and Seek#17

Open
withbitsinmind wants to merge 1 commit into
withzombies:mainfrom
withbitsinmind:main
Open

Add from_reader for types implementing Read and Seek#17
withbitsinmind wants to merge 1 commit into
withzombies:mainfrom
withbitsinmind:main

Conversation

@withbitsinmind
Copy link
Copy Markdown

Fixes handling of files larger than 0x20000 (131,072 bytes) in ZipSpecialHandler and OleSpecialHandler.

Large files are truncated to 131,072 bytes before being passed to ZipArchive::new. Since ZIP archives store their central directory at the end of the file, the truncated input results in an error which is silently ignored. Using Read + Seek all the way through ensures the full file can be accessed and correctly processed, in addition to providing a more flexible API than just std::fs::File.

Fix handling of files larger than 0x20000 (131,072 bytes) in ZipSpecialHandler and OleSpecialHandler.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant