Skip to content

Commit

Permalink
Report 0162-internment to RustSec
Browse files Browse the repository at this point in the history
  • Loading branch information
JOE1994 committed Mar 4, 2021
1 parent c58eda2 commit ac5a6f9
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions crates/internment/RUSTSEC-0000-0000.md
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>`.

0 comments on commit ac5a6f9

Please sign in to comment.