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
2023-11-08T04:07:21.429742Z
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

Affected ranges

Type
SEMVER
Events
Introduced
0.0.0-0
Fixed
2.0.0

Ecosystem specific

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

Database specific

{
    "cvss": null,
    "informational": "unsound",
    "categories": [
        "memory-corruption"
    ]
}