GHSA-jmwx-r3gq-qq3p

Suggest an improvement
Source
https://github.com/advisories/GHSA-jmwx-r3gq-qq3p
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/06/GHSA-jmwx-r3gq-qq3p/GHSA-jmwx-r3gq-qq3p.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-jmwx-r3gq-qq3p
Aliases
Published
2022-06-17T00:27:57Z
Modified
2023-11-08T04:07:21Z
Summary
vec-const attempts to construct a Vec from a pointer to a const slice
Details

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.

Database specific
{
    "cwe_ids":  [],
    "github_reviewed":  true,
    "github_reviewed_at":  "2022-06-17T00:27:57Z",
    "nvd_published_at":  null,
    "severity":  "MODERATE"
}
References

Affected packages

crates.io / vec-const

Package

Name
vec-const
View open source insights on deps.dev
Purl
pkg:cargo/vec-const

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
2.0.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/06/GHSA-jmwx-r3gq-qq3p/GHSA-jmwx-r3gq-qq3p.json"