Skip to content

Commit

Permalink
Merge pull request #857 from ammaraskar/max7301
Browse files Browse the repository at this point in the history
Add advisory for data race in max7301
  • Loading branch information
Shnatsel authored Mar 30, 2021
2 parents 7fbfd7e + 834ec15 commit c0257cf
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions crates/max7301/RUSTSEC-0000-0000.md
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.

0 comments on commit c0257cf

Please sign in to comment.