vec-const attempts to construct a Vec from a pointer to a const slice
Moderate severity
GitHub Reviewed
Published
Jun 17, 2022
to the GitHub Advisory Database
•
Updated Jan 12, 2023
Description
Published to the GitHub Advisory Database
Jun 17, 2022
Reviewed
Jun 17, 2022
Last updated
Jan 12, 2023
Affected versions of this crate claimed to construct a const
Vec
with nonzero length and capacity, but that cannot be done because such aVec
requires a pointer from an allocator.The implementation was later changed to just construct a
std::borrow::Cow
.References