From 5335769e4b6cc196e77496b69d8d23274de31775 Mon Sep 17 00:00:00 2001 From: Ben Kimock Date: Sun, 17 Oct 2021 18:19:40 -0400 Subject: [PATCH] Update vec-const advisory (#1081) --- crates/vec-const/RUSTSEC-2021-0082.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/vec-const/RUSTSEC-2021-0082.md b/crates/vec-const/RUSTSEC-2021-0082.md index 4300d16..a15d11b 100644 --- a/crates/vec-const/RUSTSEC-2021-0082.md +++ b/crates/vec-const/RUSTSEC-2021-0082.md @@ -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`.