GHSA-66p5-j55p-32r9

Suggest an improvement
Source
https://github.com/advisories/GHSA-66p5-j55p-32r9
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-66p5-j55p-32r9/GHSA-66p5-j55p-32r9.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-66p5-j55p-32r9
Aliases
Published
2021-08-25T21:00:25Z
Modified
2023-11-08T04:00:14.788260Z
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
0Unknown introduced version / All previous versions are affected
Fixed
0.6.13