mirror of
https://github.com/OMGeeky/advisory-db.git
synced 2026-01-01 01:00:23 +01:00
Report 0047-try-mutex to RustSec (#517)
This commit is contained in:
18
crates/try-mutex/RUSTSEC-0000-0000.md
Normal file
18
crates/try-mutex/RUSTSEC-0000-0000.md
Normal file
@@ -0,0 +1,18 @@
|
||||
```toml
|
||||
[advisory]
|
||||
id = "RUSTSEC-0000-0000"
|
||||
package = "try-mutex"
|
||||
date = "2020-11-17"
|
||||
url = "https://github.com/mpdn/try-mutex/issues/2"
|
||||
|
||||
[versions]
|
||||
patched = [">= 0.3.0"]
|
||||
```
|
||||
|
||||
# TryMutex<T> allows sending non-Send type across threads
|
||||
|
||||
Affected versions of this crate unconditionally implemented Sync trait for `TryMutex<T>` type.
|
||||
|
||||
This allows users to put non-Send `T` type in `TryMutex` and send it to another thread, which can cause a data race.
|
||||
|
||||
The flaw was corrected in the 0.3.0 release by adding `T: Send` bound for the Sync trait implementation.
|
||||
Reference in New Issue
Block a user