Skip to content
OpenAdvisories
Medium GHSA-8gj8-hv75-gp94 RUSTSEC-2022-0020

`SegQueue` 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 < 0.7.0 0.7.0 GHSA-8gj8-hv75-gp94
crates.io crossbeam >= 0.0.0-0, < 0.7.0 0.7.0 RUSTSEC-2022-0020

References