mirror of
https://github.com/OMGeeky/advisory-db.git
synced 2025-12-29 15:56:07 +01:00
Merge pull request #579 from ammaraskar/conquer-once
[patched] Add advisory for data race in conquer-once
This commit is contained in:
24
crates/conquer-once/RUSTSEC-0000-0000.md
Normal file
24
crates/conquer-once/RUSTSEC-0000-0000.md
Normal file
@@ -0,0 +1,24 @@
|
||||
```toml
|
||||
[advisory]
|
||||
id = "RUSTSEC-0000-0000"
|
||||
package = "conquer-once"
|
||||
date = "2020-12-22"
|
||||
url = "https://github.com/oliver-giersch/conquer-once/issues/3"
|
||||
categories = ["memory-corruption"]
|
||||
keywords = ["concurrency"]
|
||||
|
||||
[versions]
|
||||
patched = [">= 0.3.2"]
|
||||
unaffected = []
|
||||
```
|
||||
|
||||
# conquer-once's OnceCell lacks Send bound for its Sync trait.
|
||||
|
||||
Affected versions of `conquer-once` implements `Sync` for its `OnceCell` type
|
||||
without restricting it to `Send`able types.
|
||||
|
||||
This allows non-`Send` but `Sync` types such as `MutexGuard` to be sent across
|
||||
threads leading to undefined behavior and memory corruption in concurrent
|
||||
programs.
|
||||
|
||||
The issue was fixed by adding a `Send` constraint to `OnceCell`.
|
||||
Reference in New Issue
Block a user