Skip to content

Another (hopefully) better limit reader in Rust, supporting Zlib and (in the future) Gzip decoding on the fly.

License

Apache-2.0, Unknown licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
Unknown
LICENSE-MIT
Notifications You must be signed in to change notification settings

bsodmike/better-limit-reader-rs

Repository files navigation

better-limit-reader-rs

Crates.io Version Released API docs

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.

It has been said, the name is a bit boisterous, but at least it sets high ambitions for this wee crate.

API usage

Refer to the docs for further examples.

Upcoming enhancements (in no particular order)

  • Gzip decompression.
  • no_std support (?); This needs planning via an issue on Github.
  • 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

at your option.

About

Another (hopefully) better limit reader in Rust, supporting Zlib and (in the future) Gzip decoding on the fly.

Resources

License

Apache-2.0, Unknown licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
Unknown
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published