mirror of
https://github.com/OMGeeky/advisory-db.git
synced 2025-12-27 06:29:31 +01:00
Merge pull request #584 from setuid0x0/hashconsing
Add advisory for data race in hashconsing
This commit is contained in:
17
crates/hashconsing/RUSTSEC-0000-0000.md
Normal file
17
crates/hashconsing/RUSTSEC-0000-0000.md
Normal file
@@ -0,0 +1,17 @@
|
||||
```toml
|
||||
[advisory]
|
||||
id = "RUSTSEC-0000-0000"
|
||||
package = "hashconsing"
|
||||
date = "2020-11-10"
|
||||
url = "https://github.com/AdrienChampion/hashconsing/issues/1"
|
||||
categories = ["memory-corruption"]
|
||||
keywords = ["concurrency"]
|
||||
[versions]
|
||||
patched = [">= 1.1.0"]
|
||||
```
|
||||
|
||||
# hashconsing's HConsed lacks Send/Sync bound for its Send/Sync trait.
|
||||
|
||||
Affected versions of `hashconsing` implements `Send`/`Sync` for its `HConsed` 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.
|
||||
Reference in New Issue
Block a user