RUSTSEC-2021-0082

Source
https://rustsec.org/advisories/RUSTSEC-2021-0082
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2021-0082.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2021-0082
Aliases
Published
2021-08-14T12:00:00Z
Modified
2025-12-17T17:18:32Z
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
{
    "license": "CC0-1.0"
}
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.0.0-0
Fixed
2.0.0

Ecosystem specific

{
    "affected_functions": null,
    "affects": {
        "arch": [],
        "functions": [],
        "os": []
    }
}

Database specific

categories
[
    "memory-corruption"
]
cvss
null
informational
"unsound"
source
"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2021-0082.json"