Merge pull request #652 from JOE1994/0049-slock

slock: Slock<T> allows sending non-Send types across thread boundaries
This commit is contained in:
Sergey "Shnatsel" Davidoff
2021-01-30 19:15:16 +01:00
committed by GitHub

View File

@@ -0,0 +1,18 @@
```toml
[advisory]
id = "RUSTSEC-0000-0000"
package = "slock"
date = "2020-11-17"
url = "https://github.com/BrokenLamp/slock-rs/issues/2"
categories = ["memory-corruption"]
[versions]
patched = []
```
# Slock<T> allows sending non-Send types across thread boundaries
`Slock<T>` unconditionally implements `Send`/`Sync`.
Affected versions of this crate allows sending non-Send types to other threads,
which can lead to data races and memory corruption due to the data race.