Skip to content
OpenAdvisories
Medium GHSA-6888-wf7j-34jq RUSTSEC-2022-0021

`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-queue < 0.2.3 0.2.3 GHSA-6888-wf7j-34jq
crates.io crossbeam-queue >= 0.0.0-0, < 0.2.3 0.2.3 RUSTSEC-2022-0021

References