Skip to content

Commit

Permalink
Merge pull request #589 from ammaraskar/lever
Browse files Browse the repository at this point in the history
Add advisory for data race in lever
  • Loading branch information
Shnatsel authored Jan 30, 2021
2 parents ba36f96 + 828efa2 commit c005d5b
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions crates/lever/RUSTSEC-0000-0000.md
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.

0 comments on commit c005d5b

Please sign in to comment.