logo

Rust crates reviews

Cryptographically verifiable, distributed dependency reviews

crate: memalloc

https://lib.rs/crates/memalloc/

Add the last reviewed version to Cargo.toml / [dependencies]:

memalloc = "0.1.0"

Filter reviews clicking on the numbers in the summary.

Full column names in tooltip hints: rating Negative, rating Neutral, rating Positive, rating Strong, thoroughness, understanding, reviews count.

Neg
Neu
Pos
Str
tho
und
rev
1
1
1
1
crate version
rating
date
reviewer
thoroughness, understanding
memalloc 0.1.0
negative
2019-08-30
medium, medium

API design is super brittle. Returning uninitialized memory seems like UB-bait.

Detail

FileRatingNotes
src/lib.rs-1Soundish, but unsafe as heck APIs.
.cargo-ok+1
.gitignore+1
.travis.yml+1
Cargo.toml+1
README.md+1
OtherRatingNotes
unsafe-1Soundish, but unsafe as heck API design.
fs+1None
io+1None
docs+1
tests+1

src/lib.rs

LineWhatNotes
23allocateThis looks like it returns uninitialized memory (only sizes capacity not actual size). UB bait. Unaligned.
38reallocateMinimal debug checks, constructs Vec from_raw_parts with size when the real vec had size 0.

© bestia.dev 2023, MIT License, Version: 2023.608.1636

Open source repository for this web app: https://github.com/bestia-dev/cargo_crev_web/