Channel creates zero value of any type
High severity
GitHub Reviewed
Published
Jun 16, 2022
to the GitHub Advisory Database
•
Updated Jan 12, 2023
Description
Published to the GitHub Advisory Database
Jun 16, 2022
Reviewed
Jun 16, 2022
Last updated
Jan 12, 2023
Affected versions of this crate called
mem::zeroed()
to create values of a user-supplied typeT
.This is unsound e.g. if
T
is a reference type (which must be non-null).The flaw was corrected by avoiding the use of
mem::zeroed()
, usingMaybeUninit
instead.References