Skip to content

Commit

Permalink
Report 0050-magnetic to RustSec (#519)
Browse files Browse the repository at this point in the history
  • Loading branch information
Qwaz authored Dec 7, 2020
1 parent f17cd12 commit bd3cb8d
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions crates/magnetic/RUSTSEC-0000-0000.md
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.

0 comments on commit bd3cb8d

Please sign in to comment.