-
Notifications
You must be signed in to change notification settings - Fork 372
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Report 0050-magnetic to RustSec (#519)
- Loading branch information
Showing
1 changed file
with
18 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,18 @@ | ||
```toml | ||
[advisory] | ||
id = "RUSTSEC-0000-0000" | ||
package = "magnetic" | ||
date = "2020-11-29" | ||
url = "https://github.com/johnshaw/magnetic/issues/9" | ||
|
||
[versions] | ||
patched = [">= 2.0.1"] | ||
``` | ||
|
||
# MPMCConsumer/Producer allows sending non-Send type across threads | ||
|
||
Affected versions of this crate unconditionally implemented `Sync` and `Send` traits for `MPMCConsumer` and `MPMCProducer` types. | ||
|
||
This allows users to send types that do not implement `Send` trait across thread boundaries, which can cause a data race. | ||
|
||
The flaw was corrected in the 2.0.1 release by adding `T: Send` bound to affected Sync/Send trait implementations. |