This review is from cargo-vet. To add your review, set up cargo-vet and submit your URL to its registry.

The current version of lazy-bytes-cast is 7.0.0.

cargo-vet does not verify reviewers' identity. You have to fully trust the source the audits are from.

unknown

May have been packaged automatically without a review


These reviews are from Crev, a distributed system for code reviews. To add your review, set up cargo-crev.

The current version of lazy-bytes-cast is 7.0.0.

4.0.0 (older version) Rating: Negative Thoroughness: Medium Understanding: Medium

by HeroicKatora on 2020-02-26

Trait FromByteSlice relies on associated item FromByteArray::Array being a proper byte array. However, this latter trait and associated type are safe to implement with an almost arbitrary other type (a few trait std bounds don't stop any implementation).

3.0.0 (older version) Rating: Negative Thoroughness: Low Understanding: Medium

by HeroicKatora on 2020-02-26

Show review…

Version 4.0 fixes UB from casting byte slice to integer reference without any alignment checks.


Crates in the crates.io registry are tarball snapshots uploaded by crates' publishers. The registry is not using crates' git repositories. There is absolutely no guarantee that the repository URL declared by the crate belongs to the crate, or that the code in the repository is the code inside the published tarball.

To review the actual code of the crate, it's best to use cargo crev open lazy-bytes-cast. Alternatively, you can download the tarball of lazy-bytes-cast v7.0.0 or view the source online.