RUSTSEC-2018-0018

Source
https://rustsec.org/advisories/RUSTSEC-2018-0018
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2018-0018.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2018-0018
Aliases
Published
2018-09-25T12:00:00Z
Modified
2023-11-01T04:49:24.709547Z
Summary
smallvec creates uninitialized value of any type
Details

Affected versions of this crate called mem::uninitialized() to create values of a user-supplied type T. This is unsound e.g. if T is a reference type (which must be non-null and thus may not remain uninitialized).

The flaw was corrected by avoiding the use of mem::uninitialized(), using MaybeUninit instead.

References

Affected packages

crates.io / smallvec

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.0.0-0
Fixed
0.6.13

Ecosystem specific

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

Database specific

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