Add advisory for data race in may_queue

This commit is contained in:
Jungwon Lim
2021-01-18 21:04:11 -05:00
parent 65b9aa70b7
commit a07325e1c1

View File

@@ -0,0 +1,19 @@
```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"]
informational = "unsound"
[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.