mirror of
https://github.com/OMGeeky/advisory-db.git
synced 2026-01-21 10:58:04 +01:00
Report 0050-magnetic to RustSec (#519)
This commit is contained in:
18
crates/magnetic/RUSTSEC-0000-0000.md
Normal file
18
crates/magnetic/RUSTSEC-0000-0000.md
Normal file
@@ -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.
|
||||
Reference in New Issue
Block a user