Skip to content

Commit 5335769

Browse files
authored
Update vec-const advisory (#1081)
1 parent 93c9b95 commit 5335769

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

crates/vec-const/RUSTSEC-2021-0082.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@ keywords = ["memory-safety"]
99
informational = "unsound"
1010

1111
[versions]
12-
patched = []
12+
patched = [">= 2.0.0"]
1313
```
1414

1515
# vec-const attempts to construct a Vec from a pointer to a const slice
1616

17-
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.
17+
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.
18+
19+
The implementation was later changed to just construct a `std::borrow::Cow`.

0 commit comments

Comments
 (0)