-
Notifications
You must be signed in to change notification settings - Fork 377
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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>`. |