Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix potential capacity overflow when encoding with fixed blocks
Currently, this crate always tries to use dynamic DEFLATE blocks, so the codepath for static blocks is mostly unused. I've fixed it to use static blocks in a working copy instead, and discovered that empty files, where instart == inend, may trigger a bad allocation in that codepath.
- Loading branch information