HistoryEdit

RUSTSEC-2021-0082

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

Issued
Package
vec-const (crates.io)
Type
INFO Unsound
Categories
Keywords
#memory-safety
Details
https://github.com/Eolu/vec-const/issues/1#issuecomment-898908241
Patched
  • >=2.0.0
Keywords
#memory-safety

Description

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.