-
Notifications
You must be signed in to change notification settings - Fork 333
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
```toml | ||
[advisory] | ||
id = "RUSTSEC-0000-0000" | ||
package = "crossbeam-queue" | ||
date = "2022-05-10" | ||
informational = "unsound" | ||
url = "https://github.com/crossbeam-rs/crossbeam/pull/458" | ||
|
||
[versions] | ||
patched = [">= 0.2.3"] | ||
|
||
``` | ||
|
||
# `SegQueue` creates zero value of any type | ||
|
||
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. |