Merge pull request #583 from setuid0x0/may_queue

Add advisory for data race in may_queue
This commit is contained in:
Sergey "Shnatsel" Davidoff
2021-01-20 20:28:28 +01:00
committed by GitHub

View File

@@ -0,0 +1,18 @@
```toml
[advisory]
id = "RUSTSEC-0000-0000"
package = "may_queue"
date = "2020-11-10"
url = "https://github.com/Xudong-Huang/may/issues/88"
categories = ["memory-corruption"]
keywords = ["concurrency"]
[versions]
patched = []
```
# may_queue's Queue lacks Send/Sync bound for its Send/Sync trait.
Affected versions of `may_queue` implements `Send`/`Sync` for its `Queue` type without restricting it to `Send`able types and `Sync`able types.
This allows non-`Sync` types such as `Cell` to be shared across threads leading to undefined behavior and memory corruption in concurrent programs.