-
Notifications
You must be signed in to change notification settings - Fork 362
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #589 from ammaraskar/lever
Add advisory for data race in lever
- Loading branch information
Showing
1 changed file
with
21 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,21 @@ | ||
```toml | ||
[advisory] | ||
id = "RUSTSEC-0000-0000" | ||
package = "lever" | ||
date = "2020-11-10" | ||
url = "https://github.com/vertexclique/lever/issues/15" | ||
categories = ["memory-corruption"] | ||
keywords = ["concurrency"] | ||
|
||
[versions] | ||
patched = [] | ||
``` | ||
|
||
# AtomicBox<T> lacks bound on its Send and Sync traits allowing data races | ||
|
||
`AtomicBox<T>` is a `Box` type designed to be used across threads, however, it | ||
implements the `Send` and `Sync` traits for all types `T`. | ||
|
||
This allows non-Send types such as `Rc` and non-Sync types such as `Cell` to | ||
be used across thread boundaries which can trigger undefined behavior and | ||
memory corruption. |