ADVISORIES

RustSec Advisory Database

RUSTSEC-2021-0082

vec-const attempts to construct a Vec from a pointer to a const slice

Details

Affected versions of this crate claimed to construct a const Vec with nonzero length and capacity, but that cannot be done because such a Vec requires a pointer from an allocator.

The implementation was later changed to just construct a std::borrow::Cow.

Affected packages

EcosystemPackageAffected versions
crates.iovec-const
From 0.0.0-0 before 2.0.0 (fixed in 2.0.0)

References