Update vec-const advisory (#1081)

This commit is contained in:
Ben Kimock
2021-10-17 18:19:40 -04:00
committed by GitHub
parent 93c9b95f23
commit 5335769e4b

View File

@@ -9,9 +9,11 @@ keywords = ["memory-safety"]
informational = "unsound"
[versions]
patched = []
patched = [">= 2.0.0"]
```
# vec-const attempts to construct a Vec from a pointer to a const slice
This crate claims 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.
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`.