These reviews are from cargo-vet. To add your review, set up cargo-vet
and submit your URL to its registry.
0.3.3 (current)
From mozilla/supply-chain copy of hg. By Bobby Holley.
I didn't review the allocation code carefully but it's not malicious.
0.3.3 (current)
From google/supply-chain copy of chromium. Audited without comment by Gwendal Grignou.
0.3.3 (current)
From kornelski/crev-proofs copy of salsa.debian.org.
Packaged for Debian (stable). Changelog:
- Package safemem 0.3.3 from crates.io using debcargo 2.4.0
0.3.3 (current)
From kornelski/crev-proofs copy of git.savannah.gnu.org.
Packaged for Guix (crates-io)
cargo-vet does not verify reviewers' identity. You have to fully trust the source the audits are from.
- safe-to-run
-
This crate can be compiled, run, and tested on a local workstation or in controlled automation without surprising consequences. More…
- crypto-safe
-
All crypto algorithms in this crate have been reviewed by a relevant expert.
Note: If a crate does not implement crypto, use
does-not-implement-crypto
, which impliescrypto-safe
, but does not require expert review in order to audit for. - 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 safemem is 0.3.3.
0.3.1 (older version) Thoroughness: High Understanding: High
Approved without comment by gitlab.com/KonradBorowski on 2019-07-31
0.3.0 (older version) Thoroughness: High Understanding: High
by gitlab.com/KonradBorowski on 2019-07-30
Show review…
copy_over and prepend functions cause UB
Lib.rs has been able to verify that all files in the crate's tarball are in the crate's repository. Please note that this check is still in beta, and absence of this confirmation does not mean that the files don't match.
Crates in the crates.io registry are tarball snapshots uploaded by crates' publishers. The registry is not using crates' git repositories, so there is a possibility that published crates have a misleading repository URL, or contain different code from the code in the repository.
To review the actual code of the crate, it's best to use cargo crev open safemem
. Alternatively, you can download the tarball of safemem v0.3.3 or view the source online.
The latest crates.io release was in 2019. The repository has been archived by the author.
Migration
safemem::copy_over(slice, src_idx, dest_idx, len);
can be replaced withslice.copy_within(src_idx..src_idx+len, dest_idx);
as ofrust 1.37.0
.safemem::write_bytes(slice, byte);
can be replaced withslice.fill(byte);
as ofrust 1.50.0
safemem::prepend(slice, vec);
can be replaced withas of
rust 1.26.0