-
Notifications
You must be signed in to change notification settings - Fork 372
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 #857 from ammaraskar/max7301
Add advisory for data race in max7301
- Loading branch information
Showing
1 changed file
with
22 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,22 @@ | ||
```toml | ||
[advisory] | ||
id = "RUSTSEC-0000-0000" | ||
package = "max7301" | ||
date = "2020-12-18" | ||
url = "https://github.com/edarc/max7301/issues/1" | ||
categories = ["memory-corruption"] | ||
keywords = ["concurrency"] | ||
|
||
[versions] | ||
patched = [] | ||
``` | ||
|
||
# ImmediateIO and TransactionalIO can cause data races | ||
|
||
The `ImmediateIO` and `TransactionalIO` types implement `Sync` for all contained | ||
`Expander<EI>` types regardless of if the `Expander` itself is safe to use | ||
across threads. | ||
|
||
As the `IO` types allow retrieving the `Expander`, this can lead to non-thread | ||
safe types being sent across threads as part of the `Expander` leading to data | ||
races. |