better-limit-reader-1.0.0 has been yanked.
better-limit-reader-rs
Exposes LimitReader which is a limit reader, that protects against zip-bombs and other nefarious activities that limits the number of bytes read from an underlying reader.
This crate is heavily inspired by Jon Gjengset’s “Crust of Rust” episode on the inner workings of git on YouTube and mitigrating Zip-bombs.
API usage
Refer to the docs for further examples.
Upcoming enhancements
- TBD: If you have any requests, please open an issue!
Building
This runs a release
build, runs tests and generates docs.
./build.sh
MSRV
This project is tested against the most recent stable rust version.
License
This work is licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.