mirror of
https://github.com/OMGeeky/advisory-db.git
synced 2025-12-31 08:40:26 +01:00
Report 0162-internment to RustSec
This commit is contained in:
19
crates/internment/RUSTSEC-0000-0000.md
Normal file
19
crates/internment/RUSTSEC-0000-0000.md
Normal file
@@ -0,0 +1,19 @@
|
||||
```toml
|
||||
[advisory]
|
||||
id = "RUSTSEC-0000-0000"
|
||||
package = "internment"
|
||||
date = "2021-03-03"
|
||||
url = "https://github.com/droundy/internment/issues/20"
|
||||
categories = ["thread-safety"]
|
||||
|
||||
[versions]
|
||||
patched = [">= 0.4.2"]
|
||||
```
|
||||
|
||||
# Intern<T>: Data race allowed on T
|
||||
|
||||
Affected versions of this crate unconditionally implements `Sync` for `Intern<T>`.
|
||||
This allows users to create data race on `T: !Sync`, which may lead to undefined behavior
|
||||
(for example, memory corruption).
|
||||
|
||||
The flaw was corrected in commit 2928a87 by adding the trait bound `T: Sync` in the `Sync` impl of `Intern<T>`.
|
||||
Reference in New Issue
Block a user