Skip to content
OpenAdvisories
High GHSA-9g55-pg62-m8hh RUSTSEC-2022-0019

Channel creates zero value of any type

Published Jun 16, 2022 · Updated Nov 8, 2023 · Assigned by GHSA

Description

Affected versions of this crate called `mem::zeroed()` 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).

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

Affected packages

EcosystemPackageAffectedFixedRecord
crates.io crossbeam-channel < 0.4.3 0.4.3 GHSA-9g55-pg62-m8hh
crates.io crossbeam-channel >= 0.0.0-0, < 0.4.3 0.4.3 RUSTSEC-2022-0019

References